Skip to content

Instantly share code, notes, and snippets.

public static void Main(string[] args)
{
var sInstance = new Structure(25);
sInstance.Change(35);
await sInstance.ChangeAsync(45);
}
public struct Structure
{
private int value;
@YuvalItzchakov
YuvalItzchakov / gist:c24c51747226e9a64f6a
Created November 12, 2014 15:09
generic vs non-generic state machine
C# code:
IEnumerable NonGenericEmptyEnumerable()
{
yield break;
}
IEnumerable<T> GenericEmptyEnumerable<T>()
{
yield break;