public static void ObjectInitializerWithInitializationOfNestedObjects() { InitializerTests.X(InitializerTests.Y(), new Data { MoreData = { a = MyEnum.a, MoreData = { a = MyEnum.b } } }); }
public static void CollectionInitializerDictionaryWithEnumTypes() { InitializerTests.X(InitializerTests.Y(), new Dictionary <MyEnum, MyEnum2> { { MyEnum.a, MyEnum2.c }, { MyEnum.b, MyEnum2.d } }); }
public static void CollectionInitializerDictionary() { InitializerTests.X(InitializerTests.Y(), new Dictionary <string, int> { { "First", 1 }, { "Second", 2 }, { "Third", 3 } }); }
public static void MixedObjectAndDictInitializer() { InitializerTests.X(InitializerTests.Y(), new Data { MoreData = { a = MyEnum.a,
public static void ObjectInitializer() { InitializerTests.X(InitializerTests.Y(), new Data { a = MyEnum.a }); }