Skip to content

Instantly share code, notes, and snippets.

@kevingosse
Created March 26, 2017 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevingosse/32e35a2cd38944a115bb5a7cfe960e86 to your computer and use it in GitHub Desktop.
Save kevingosse/32e35a2cd38944a115bb5a7cfe960e86 to your computer and use it in GitHub Desktop.
private unsafe T[] Populate(string name, RuntimeType.MemberListType listType, RuntimeType.RuntimeTypeCache.CacheType cacheType)
{
T[] listByName;
if (name == null || name.Length == 0 || cacheType == RuntimeType.RuntimeTypeCache.CacheType.Constructor && (int) name.FirstChar != 46 && (int) name.FirstChar != 42)
{
listByName = this.GetListByName((char*) null, 0, (byte*) null, 0, listType, cacheType);
}
else
{
...
}
this.Insert(ref listByName, name, listType);
return listByName;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment