Esempio n. 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);
        }
Esempio n. 2
0
 public System.Reflection.Emit.EventBuilder DefineEvent(string name, System.Reflection.EventAttributes attributes, System.Type eventtype)
 {
     throw null;
 }
Esempio n. 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();
 }
Esempio n. 5
0
 public EventBuilder DefineEvent(string name, System.Reflection.EventAttributes attributes, Type eventtype)
 {
 }
Esempio n. 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));
        }
Esempio n. 7
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.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));
			
		}