Omer has been professionally developing applications over the past 8 years, both at the IDF’s IT corps and later at the Sela Technology Center, but has had the programming bug ever since he can remember himself. As a senior developer at NuConomy, a leading web analytics and advertising startup, he leads a wide range of technologies for its flagship products.
class __Anonymous1 { private T1 f1 ; private T2 f2 ; // … private Tn fn ; public T1 p1 { get { return f1 ; } set { f1 = value ; } } public T2 p2 { get { return f2 ; } set { f2 = value ; } } // … public Tn pn { get { return fn ; } set { fn = value ; } } }
var myValue = new { A = 2, B = 3 };
class A<T> where T : new() { void B() { var myValue = new { C = new T() }; } } // Turns into: class A<T> where T : new() { // Note the use of a value type for a small type struct __Anonymous1 { private T c; public T C { get { return c; } set { c = value; } } } void B() { __Anonymous1 myValue = new __Anonymous1(); myValue.C = new T(); } }
No Comments