示例#1
0
        private System.Reflection.EventAttributes GetEventAttributes(EventDefinition propertyDefinition)
        {
            System.Reflection.EventAttributes attributes = System.Reflection.EventAttributes.None;

            var cecilAttributes = propertyDefinition.Attributes;

            if ((cecilAttributes & EventAttributes.RTSpecialName) == EventAttributes.RTSpecialName)
            {
                attributes |= System.Reflection.EventAttributes.RTSpecialName;
            }
            if ((cecilAttributes & EventAttributes.SpecialName) == EventAttributes.SpecialName)
            {
                attributes |= System.Reflection.EventAttributes.SpecialName;
            }

            return(attributes);
        }
示例#2
0
 public System.Reflection.Emit.EventBuilder DefineEvent(string name, System.Reflection.EventAttributes attributes, System.Type eventtype)
 {
     throw null;
 }
示例#3
0
 public System.Reflection.Emit.EventBuilder DefineEvent(string name, System.Reflection.EventAttributes attributes, System.Type eventtype)
 {
     return(default(System.Reflection.Emit.EventBuilder));
 }
 public System.Reflection.Emit.EventBuilder DefineEvent(string name, System.Reflection.EventAttributes attributes, System.Type eventtype)
 {
     throw new PlatformNotSupportedException();
 }
示例#5
0
 public EventBuilder DefineEvent(string name, System.Reflection.EventAttributes attributes, Type eventtype)
 {
 }
示例#6
0
        public EventBuilder DefineEvent(string name, System.Reflection.EventAttributes attributes, Type eventtype)
        {
            Contract.Ensures(Contract.Result <System.Reflection.Emit.EventBuilder>() != null);

            return(default(EventBuilder));
        }
示例#7
0
文件: Rows.cs 项目: emtees/old-code
		/// <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.EventFlags = (System.Reflection.EventAttributes) LEBitConverter.ToInt16(buff, offs);
			offs += sizeof (short);
			this.Name = LEBitConverter.ToInt32(buff, offs);
			offs += 4;
			this.EventType = TabsDecoder.DecodeToken(CodedTokenId.TypeDefOrRef, LEBitConverter.ToInt32(buff, offs));
			
		}