Skip to content

Commit

Permalink
Add code improvements in TypeMetadata
Browse files Browse the repository at this point in the history
Replace var with System.Type in AddToStoredTypes and improve formatting.
  • Loading branch information
jlokiec committed Jan 15, 2019
1 parent dfebfc4 commit 250f60f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions AdaptiveProgramming/Reflection/Model/TypeMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Type> types)
{
foreach (Type type in types)
{
foreach (var type in types)
{
AddToStoredTypes(type);
}
AddToStoredTypes(type);
}
#endregion

}
#endregion

}
}

0 comments on commit 250f60f

Please sign in to comment.