Ejemplo n.º 1
0
 /// <summary>
 /// Adds the given types to the scope of used types.
 /// </summary>
 public static void AddTypes(this IStringlyScope scope, IEnumerable <Type> types)
 {
     foreach (var type in types)
     {
         scope.AddType(type);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds all the exported (public) types in the given assembly to the scope of used types.
 /// </summary>
 public static void AddTypes(this IStringlyScope scope, Assembly assembly)
 {
     foreach (var type in assembly.GetExportedTypes())
     {
         scope.AddType(type);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Adds the given type to the scope of used types.
 /// </summary>
 public static void AddType(this IStringlyScope scope, Type type)
 {
     scope.AddType(SafeGenericTypeName(type));
 }