Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / Emit / EventToken.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DatagridviewDisplayedBandsData.cs
- TableItemStyle.cs
- SchemaElementDecl.cs
- BitmapCodecInfo.cs
- CopyNodeSetAction.cs
- RelationalExpressions.cs
- ClipboardData.cs
- LinkConverter.cs
- SqlSelectStatement.cs
- DataControlLinkButton.cs
- ObjectKeyFrameCollection.cs
- ResXResourceWriter.cs
- safex509handles.cs
- ExpressionBinding.cs
- AccessKeyManager.cs
- SynchronizedInputAdaptor.cs
- StorageModelBuildProvider.cs
- FocusManager.cs
- XmlSchemaAttribute.cs
- SafeProcessHandle.cs
- CreateUserWizard.cs
- RSAOAEPKeyExchangeDeformatter.cs
- PerformanceCounter.cs
- ProviderSettingsCollection.cs
- ObservableCollection.cs
- ProtocolsSection.cs
- TextBoxBase.cs
- ImageMapEventArgs.cs
- StateBag.cs
- TcpAppDomainProtocolHandler.cs
- QilFunction.cs
- Rect3D.cs
- HandlerBase.cs
- SessionEndingCancelEventArgs.cs
- ExpressionEditorAttribute.cs
- _AutoWebProxyScriptEngine.cs
- TextUtf8RawTextWriter.cs
- HyperLink.cs
- ToolStripLocationCancelEventArgs.cs
- _LocalDataStore.cs
- AngleUtil.cs
- TiffBitmapEncoder.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- DbUpdateCommandTree.cs
- AssemblyGen.cs
- GlobalAllocSafeHandle.cs
- WindowClosedEventArgs.cs
- ResourceProviderFactory.cs
- VBIdentifierDesigner.xaml.cs
- MeasureData.cs
- LocatorPartList.cs
- ExceptionRoutedEventArgs.cs
- UITypeEditor.cs
- BamlLocalizableResource.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- SecurityTokenParameters.cs
- SafeFindHandle.cs
- FontStretches.cs
- Tuple.cs
- SectionInput.cs
- X509Extension.cs
- LinkDescriptor.cs
- MetadataItemCollectionFactory.cs
- HwndSourceParameters.cs
- TextEditorMouse.cs
- ConnectionManagementElementCollection.cs
- QilReference.cs
- DataObjectEventArgs.cs
- SiteMapHierarchicalDataSourceView.cs
- ServiceReference.cs
- VisualStyleElement.cs
- FamilyMapCollection.cs
- BoolLiteral.cs
- SqlClientWrapperSmiStream.cs
- WsatServiceAddress.cs
- SQLInt32Storage.cs
- XmlQualifiedNameTest.cs
- Menu.cs
- WebPartConnectionsConfigureVerb.cs
- RoleService.cs
- ColumnCollection.cs
- TraceSection.cs
- ResourceWriter.cs
- QilPatternFactory.cs
- NotificationContext.cs
- MetafileHeader.cs
- TypedDatasetGenerator.cs
- HierarchicalDataTemplate.cs
- ResourcePart.cs
- DataGrid.cs
- FaultPropagationQuery.cs
- ConfigurationElementCollection.cs
- LicFileLicenseProvider.cs
- XmlImplementation.cs
- DataServiceHost.cs
- HwndMouseInputProvider.cs
- Schema.cs
- SQLGuidStorage.cs
- InvokeBinder.cs
- ComponentTray.cs