private void LazyParseArguments()
{
ByteReader br = module.GetBlob(module.CustomAttribute.records[customAttributeIndex].Value);
if (br.Length == 0)
{
// it's legal to have an empty blob
lazyConstructorArguments = Empty <CustomAttributeTypedArgument> .Array;
lazyNamedArguments = Empty <CustomAttributeNamedArgument> .Array;
}
else
{
if (br.ReadUInt16() != 1)
{
throw new BadImageFormatException();
}
lazyConstructorArguments = ReadConstructorArguments(module.Assembly, br, Constructor);
lazyNamedArguments = ReadNamedArguments(module.Assembly, br, br.ReadUInt16(), Constructor.DeclaringType);
}
}