private static void RegisterSubClasses(DocumentFilterContext context, Type baseType) { var schemaGenerator = context.SchemaGenerator; var derivedTypes = DerivedTypesHelper.GetDerivedTypes(typeof(T)); foreach (var type in derivedTypes) { schemaGenerator.GenerateSchema(type, context.SchemaRepository); } }
private static HashSet <Type> DerivedTypesInit() { return(new HashSet <Type>(DerivedTypesHelper.GetDerivedTypes(typeof(T)))); }