Advertisement
Guest User

Untitled

a guest
Sep 18th, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 KB | None | 0 0
  1. using System;
  2.  
  3. namespace test
  4. {
  5.  
  6.     public interface ISomething
  7.     {
  8.         int Azaza { get; }    
  9.     }
  10.  
  11.     public class Something : ISomething
  12.     {
  13.         private readonly int _azaza ;
  14.  
  15.         public Something()
  16.         {
  17.             _azaza = 123;
  18.         }
  19.  
  20.         public int Azaza
  21.         {
  22.             get
  23.             {
  24.                 return _azaza;
  25.             }
  26.         }
  27.     }
  28.  
  29.     class Program
  30.     {
  31.         static void Main(string[] args)
  32.         {
  33.             var something = new Something();
  34.             var azaza = something.Azaza;
  35.  
  36.             Console.WriteLine(azaza);
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement