Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Reflection / Emit / EventToken.cs / 1 / EventToken.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: EventToken ** ** ** Propertybuilder is for client to define properties for a class ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Security.Permissions; [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public struct EventToken { public static readonly EventToken Empty = new EventToken(); internal int m_event; internal EventToken(int str) { m_event=str; } public int Token { get { return m_event; } } public override int GetHashCode() { return m_event; } public override bool Equals(Object obj) { if (obj is EventToken) return Equals((EventToken)obj); else return false; } public bool Equals(EventToken obj) { return obj.m_event == m_event; } public static bool operator ==(EventToken a, EventToken b) { return a.Equals(b); } public static bool operator !=(EventToken a, EventToken b) { return !(a == b); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: EventToken ** ** ** Propertybuilder is for client to define properties for a class ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Security.Permissions; [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public struct EventToken { public static readonly EventToken Empty = new EventToken(); internal int m_event; internal EventToken(int str) { m_event=str; } public int Token { get { return m_event; } } public override int GetHashCode() { return m_event; } public override bool Equals(Object obj) { if (obj is EventToken) return Equals((EventToken)obj); else return false; } public bool Equals(EventToken obj) { return obj.m_event == m_event; } public static bool operator ==(EventToken a, EventToken b) { return a.Equals(b); } public static bool operator !=(EventToken a, EventToken b) { return !(a == b); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- manifestimages.cs
- ToolboxComponentsCreatedEventArgs.cs
- PolicyValidator.cs
- AtomMaterializer.cs
- GridEntryCollection.cs
- MultiTargetingUtil.cs
- LifetimeServices.cs
- CollaborationHelperFunctions.cs
- ServiceBusyException.cs
- ComponentManagerBroker.cs
- ListManagerBindingsCollection.cs
- ImageFormat.cs
- SeekStoryboard.cs
- CodeRemoveEventStatement.cs
- ImportCatalogPart.cs
- StopStoryboard.cs
- ClientUriBehavior.cs
- CodeSubDirectory.cs
- UniqueEventHelper.cs
- XmlValidatingReaderImpl.cs
- AsyncSerializedWorker.cs
- SqlErrorCollection.cs
- ConfigurationElementCollection.cs
- AnonymousIdentificationSection.cs
- IsolatedStorageFileStream.cs
- ListBindingHelper.cs
- CodeIterationStatement.cs
- CompositeFontInfo.cs
- PrinterSettings.cs
- ConstraintCollection.cs
- CategoryNameCollection.cs
- ScriptReferenceBase.cs
- PtsPage.cs
- AliasExpr.cs
- GroupBoxAutomationPeer.cs
- _ConnectStream.cs
- NameSpaceExtractor.cs
- XhtmlBasicLabelAdapter.cs
- TraceListener.cs
- ErrorWebPart.cs
- ResourceContainer.cs
- TextCharacters.cs
- ThreadExceptionEvent.cs
- ButtonFlatAdapter.cs
- EastAsianLunisolarCalendar.cs
- ClientSettingsSection.cs
- SystemIcmpV4Statistics.cs
- LocationUpdates.cs
- PlacementWorkspace.cs
- QueryPageSettingsEventArgs.cs
- WindowsFont.cs
- TransformConverter.cs
- AvTraceFormat.cs
- WebPartCollection.cs
- CommonRemoteMemoryBlock.cs
- XmlSignificantWhitespace.cs
- TargetControlTypeCache.cs
- StrongNameIdentityPermission.cs
- ScopedKnownTypes.cs
- SingleBodyParameterMessageFormatter.cs
- Polygon.cs
- ClipboardData.cs
- ScheduleChanges.cs
- WorkflowMarkupSerializationException.cs
- ServiceModelConfigurationSection.cs
- DBConnectionString.cs
- OleDbConnectionInternal.cs
- safex509handles.cs
- DesignerTransaction.cs
- EventProxy.cs
- XmlSchemaAnnotated.cs
- DataBindEngine.cs
- GroupQuery.cs
- IERequestCache.cs
- DocumentViewerBase.cs
- ErrorFormatter.cs
- ViewStateModeByIdAttribute.cs
- UInt32Converter.cs
- XmlNodeList.cs
- ScriptControlManager.cs
- NotifyInputEventArgs.cs
- DetailsViewPageEventArgs.cs
- BamlTreeNode.cs
- MediaScriptCommandRoutedEventArgs.cs
- BuiltInPermissionSets.cs
- ClientTargetSection.cs
- StatusBarItem.cs
- PageCodeDomTreeGenerator.cs
- ManipulationStartedEventArgs.cs
- HandlerFactoryCache.cs
- InheritanceRules.cs
- CustomAttributeFormatException.cs
- Publisher.cs
- MarshalByValueComponent.cs
- ProtocolsConfigurationHandler.cs
- DockAndAnchorLayout.cs
- CompressedStack.cs
- ReplyChannelBinder.cs
- EntityProviderFactory.cs
- CompositeActivityDesigner.cs