示例#1
0
 /// <summary>
 /// Adds the type.
 /// </summary>
 /// <param name="type">The type.</param>
 public void AddType(FauxType type)
 {
     if (type is RealType)
     {
         foreach (var realType in type.GetContainedTypes())
         {
             AddType(realType);
         }
     }else if (type is AggreType)
     {
         foreach (var fauxType in ((AggreType)type).Types)
         {
             AddType(fauxType);
         }
     }
     else
     {
         Types.Add(type);
     }
 }
示例#2
0
 /// <summary>
 /// Adds the type.
 /// </summary>
 /// <param name="type">The type.</param>
 public void AddType(FauxType type)
 {
     if (type is RealType)
     {
         foreach (var realType in type.GetContainedTypes())
         {
             AddType(realType);
         }
     }
     else if (type is AggreType)
     {
         foreach (var fauxType in ((AggreType)type).Types)
         {
             AddType(fauxType);
         }
     }
     else
     {
         Types.Add(type);
     }
 }