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 Dictionary <Type, string> Type2NameInit() { return(DerivedTypesHelper.GetType2JsonTypeName(DerivedTypesInit())); }
private static HashSet <Type> DerivedTypesInit() { return(new HashSet <Type>(DerivedTypesHelper.GetDerivedTypes(typeof(T)))); }