Created
March 12, 2019 17:43
-
-
Save aysegulsarikaya/0d6db1304c11626d46a80c94a11a7b14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class oyleBirSey | |
| { | |
| public int ControlCount; | |
| static oyleBirSey birSey; | |
| public static oyleBirSey Birsey | |
| { | |
| get | |
| { | |
| if (birSey== null) | |
| birSey = new oyleBirSey(); | |
| return oyleBirSey.birSey; | |
| } | |
| } | |
| } | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var a = oyleBirSey.Birsey; | |
| a.ControlCount = 9; | |
| Console.WriteLine(a.ControlCount); | |
| a.ControlCount++; | |
| Console.WriteLine(a.ControlCount); | |
| var b = oyleBirSey.Birsey; | |
| Console.WriteLine(b.ControlCount); | |
| b.ControlCount++; | |
| Console.WriteLine(b.ControlCount); | |
| Console.ReadKey(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment