Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public MethodHashAttribute(ByteArray methodId, MethodHashAttributeFlags flags)
 {
     this.methodId = methodId;
     this.flags    = flags;
 }
 public MethodHashAttribute(ByteArray methodId, MethodHashAttributeFlags flags)
 {
     this.methodId = methodId;
     this.flags = flags;
 }