Skip to content

Instantly share code, notes, and snippets.

@JonRurka
Last active August 29, 2015 14:11
Show Gist options
  • Save JonRurka/dd558c8f2123ad1b78d9 to your computer and use it in GitHub Desktop.
Save JonRurka/dd558c8f2123ad1b78d9 to your computer and use it in GitHub Desktop.
NameSpaces = new Dictionary<string, NamespaceItem>();
Type[] types = module.GetTypes();
foreach (Type type in types)
{
if (type != null && NameSpaces != null)
{
string spaceStr = type.Namespace;
if (!NameSpaces.ContainsKey(spaceStr))
{
NamespaceItem _spaceItem = new NamespaceItem(spaceStr, this);
_spaceItem.AddType(type);
NameSpaces.Add(spaceStr, _spaceItem);
}
else
{
NameSpaces[spaceStr].AddType(type);
}
}
else
{
Console.WriteLine("something was null!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment