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

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

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