Skip to content

Instantly share code, notes, and snippets.

@YuvalItzchakov
Created November 9, 2015 10:07
Show Gist options
  • Save YuvalItzchakov/59110c3a500c8b51d6ce to your computer and use it in GitHub Desktop.
Save YuvalItzchakov/59110c3a500c8b51d6ce to your computer and use it in GitHub Desktop.
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