public void TestPropertyWithIndexerWithoutMatchingAnnotations(Type myType) { var propclass = new PropertyWithIndexer(); propclass[1] = myType; propclass[1].RequiresNonPublicConstructors(); }
public void TestPropertyWithIndexerWithMatchingAnnotations([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type myType) { var propclass = new PropertyWithIndexer(); propclass[1] = myType; propclass[1].RequiresPublicConstructors(); }