public static MethodHashAttributeFlags GetMethodHashAttributeFlags <Local, Parameter, Method, Field, Property, Event, Type, Attribute, Assembly>( this IDecodeMetaData <Local, Parameter, Method, Field, Property, Event, Type, Attribute, Assembly> metaDataDecoder, Method method, MethodHashAttributeFlags def = MethodHashAttributeFlags.Default) { Contract.Requires(metaDataDecoder != null); MethodHashAttribute mhAttr; if (metaDataDecoder.TryGetMethodHashAttribute(method, out mhAttr)) { return(mhAttr.Flags); } return(def); }
public MethodHashAttribute(ByteArray methodId, MethodHashAttributeFlags flags) { this.methodId = methodId; this.flags = flags; }