public Type[] GetCustomModifiers(int position, bool required)
{
RuntimeTypeHandle[] req = null, opt = null;
SignatureStruct pinnedSig = this;
GetCustomModifiers(ref pinnedSig, position, out req, out opt);
Type[] custMod = new Type[required ? req.Length : opt.Length];
if(required)
{
for(int i = 0; i < custMod.Length; i++)
custMod[i] = req[i].GetRuntimeType();
}
else
{
for(int i = 0; i < custMod.Length; i++)
custMod[i] = opt[i].GetRuntimeType();
}
return custMod;
}
#endregion