Created
August 25, 2011 22:12
-
-
Save fschwiet/1172142 to your computer and use it in GitHub Desktop.
learned something C# & new today
This file contains 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 Class1 : IEnumerable | |
{ | |
public void can_use_creation_shorthand_with_arbitrary_class_supporting_Add() | |
{ | |
var hmm = new Class1() | |
{ | |
{1,2}, | |
{3,4} | |
}; | |
} | |
public void Add(int a, int b) | |
{ | |
throw new NotImplementedException(); | |
} | |
public IEnumerator GetEnumerator() | |
{ | |
throw new NotImplementedException(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment