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); }
public System.Reflection.Emit.EventBuilder DefineEvent(string name, System.Reflection.EventAttributes attributes, System.Type eventtype) { throw null; }
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(); }
public EventBuilder DefineEvent(string name, System.Reflection.EventAttributes attributes, Type eventtype) { }
public EventBuilder DefineEvent(string name, System.Reflection.EventAttributes attributes, Type eventtype) { Contract.Ensures(Contract.Result <System.Reflection.Emit.EventBuilder>() != null); return(default(EventBuilder)); }
/// <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)); }