예제 #1
0
            public void TestPropertyWithIndexerWithoutMatchingAnnotations(Type myType)
            {
                var propclass = new PropertyWithIndexer();

                propclass[1] = myType;
                propclass[1].RequiresNonPublicConstructors();
            }
예제 #2
0
            public void TestPropertyWithIndexerWithMatchingAnnotations([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type myType)
            {
                var propclass = new PropertyWithIndexer();

                propclass[1] = myType;
                propclass[1].RequiresPublicConstructors();
            }