Last active
August 29, 2015 14:11
-
-
Save JonRurka/dd558c8f2123ad1b78d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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