Beispiel #1
0
 public static bool IsKnownType(this DotvvmApiOptions options, Type type)
 {
     return(options.KnownTypeMatchers.Any(matcher => matcher.IsKnownType(type)));
 }
Beispiel #2
0
 public static void AddKnownAssembly(this DotvvmApiOptions options, params Assembly[] assemblies)
 {
     options.KnownTypeMatchers.Add(new AssemblyKnownTypeMatcher(assemblies));
 }
Beispiel #3
0
 public static void AddKnownNamespace(this DotvvmApiOptions options, string @namespace)
 {
     options.KnownTypeMatchers.Add(new NamespaceKnownTypeMatcher(@namespace));
 }
Beispiel #4
0
 public static void AddKnownType(this DotvvmApiOptions options, params Type[] types)
 {
     options.KnownTypeMatchers.Add(new StaticKnownTypeMatcher(types));
 }