Created
November 9, 2015 10:07
-
-
Save YuvalItzchakov/59110c3a500c8b51d6ce 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 static void Main(string[] args) | |
{ | |
var sInstance = new Structure(25); | |
sInstance.Change(35); | |
await sInstance.ChangeAsync(45); | |
} | |
public struct Structure | |
{ | |
private int value; | |
public Structure(int value) | |
{ | |
this.value = value; | |
} | |
public void Change(int value) | |
{ | |
this.value = value; | |
} | |
public async Task ChangeAsync(int iValue) | |
{ | |
await Task.Delay(1); | |
this.value = value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment