diff --git a/AdaptiveProgramming/Reflection/Model/TypeMetadata.cs b/AdaptiveProgramming/Reflection/Model/TypeMetadata.cs index 2ad1f022..3abbd92c 100644 --- a/AdaptiveProgramming/Reflection/Model/TypeMetadata.cs +++ b/AdaptiveProgramming/Reflection/Model/TypeMetadata.cs @@ -133,22 +133,22 @@ private static TypeMetadata EmitExtends(Type baseType) } private static void AddToStoredTypes(Type type) + { + if (!storedTypes.ContainsKey(type.Name)) { - if (!storedTypes.ContainsKey(type.Name)) - { - // TypeMetadata object is added to dictionary when invoking its constructor - new TypeMetadata(type); - } + // TypeMetadata object is added to dictionary when invoking its constructor + new TypeMetadata(type); } + } private static void AddToStoredTypes(IEnumerable types) + { + foreach (Type type in types) { - foreach (var type in types) - { - AddToStoredTypes(type); - } + AddToStoredTypes(type); } - #endregion - } + #endregion + + } } \ No newline at end of file