public static CustomAttributeNamedArgument FromReader(MetadataImage image, IBinaryStreamReader reader)
{
var signature = new CustomAttributeNamedArgument
{
ArgumentMemberType =
(reader.CanRead(sizeof(byte))
? (CustomAttributeArgumentMemberType)reader.ReadByte()
: CustomAttributeArgumentMemberType.Field),
ArgumentType = TypeSignature.ReadFieldOrPropType(image, reader),
MemberName = reader.ReadSerString(),
};
signature.Argument = CustomAttributeArgument.FromReader(image, signature.ArgumentType, reader);
return(signature);
}