/// <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); } }
/// <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); } }