Exemplo n.º 1
0
        internal MethodImplAttribute(System.Reflection.MethodImplAttributes methodImplAttributes)
        {
            MethodImplOptions all =
                MethodImplOptions.Unmanaged | MethodImplOptions.ForwardRef | MethodImplOptions.PreserveSig |
                MethodImplOptions.InternalCall | MethodImplOptions.Synchronized |
                MethodImplOptions.NoInlining | MethodImplOptions.AggressiveInlining |
                MethodImplOptions.NoOptimization | MethodImplOptions.SecurityMitigations;

            _val = ((MethodImplOptions)methodImplAttributes) & all;
        }
Exemplo n.º 2
0
 public void SetImplementationFlags(System.Reflection.MethodImplAttributes attributes)
 {
 }
Exemplo n.º 3
0
 public void SetImplementationFlags(System.Reflection.MethodImplAttributes attributes)
 {
     throw new PlatformNotSupportedException();
 }
Exemplo n.º 4
0
		/// <summary>
		///  Fills the row from the array of bytes.
		/// </summary>
		unsafe public void FromRawData(byte [] buff, int offs)
		{
			if (buff == null) throw new Exception("buff == null");
			if (offs + Size > buff.Length) throw new Exception("bounds");

		
			this.RVA = LEBitConverter.ToUInt32(buff, offs);
			offs += RVA.Size;
			this.ImplFlags = (System.Reflection.MethodImplAttributes) LEBitConverter.ToUInt16(buff, offs);
			offs += sizeof (ushort);
			this.Flags = (System.Reflection.MethodAttributes) LEBitConverter.ToUInt16(buff, offs);
			offs += sizeof (ushort);
			this.Name = LEBitConverter.ToInt32(buff, offs);
			offs += 4;
			this.Signature = LEBitConverter.ToInt32(buff, offs);
			offs += 4;
			this.ParamList = LEBitConverter.ToInt32(buff, offs);
			
		}