Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- WindowsBrush.cs
- DBConnectionString.cs
- VariableExpressionConverter.cs
- SplitContainer.cs
- OdbcCommandBuilder.cs
- DataGridPagingPage.cs
- ToolboxItemAttribute.cs
- ConfigXmlAttribute.cs
- OletxTransactionHeader.cs
- FileDataSourceCache.cs
- XmlDataSourceView.cs
- Pointer.cs
- NamespaceDisplay.xaml.cs
- ProcessHostFactoryHelper.cs
- VerificationAttribute.cs
- Evidence.cs
- QueryOperator.cs
- AttachInfo.cs
- SplitterDesigner.cs
- ToolStripOverflowButton.cs
- FaultCallbackWrapper.cs
- BindingManagerDataErrorEventArgs.cs
- ReflectionUtil.cs
- ArrowControl.xaml.cs
- RunWorkerCompletedEventArgs.cs
- PersonalizationEntry.cs
- LogExtentCollection.cs
- BaseAsyncResult.cs
- IPEndPointCollection.cs
- ExecutionPropertyManager.cs
- ExceptionHandler.cs
- FactoryMaker.cs
- PathSegment.cs
- SafeFileMappingHandle.cs
- GlyphRunDrawing.cs
- NTAccount.cs
- Html32TextWriter.cs
- CommentEmitter.cs
- StrongTypingException.cs
- SafeThreadHandle.cs
- TabControlEvent.cs
- ObjectReaderCompiler.cs
- ListBoxAutomationPeer.cs
- Point.cs
- Point3DKeyFrameCollection.cs
- Subtree.cs
- CollectionChangedEventManager.cs
- CompositeFontParser.cs
- PropertyKey.cs
- FastEncoderStatics.cs
- HitTestDrawingContextWalker.cs
- Classification.cs
- FileLevelControlBuilderAttribute.cs
- MetadataArtifactLoaderCompositeFile.cs
- Label.cs
- DefaultProxySection.cs
- ControlTemplate.cs
- KerberosSecurityTokenAuthenticator.cs
- RenderDataDrawingContext.cs
- ImageField.cs
- DBBindings.cs
- ThreadStateException.cs
- TranslateTransform.cs
- PagerSettings.cs
- BindingsCollection.cs
- MatcherBuilder.cs
- HtmlLink.cs
- GridErrorDlg.cs
- UIElementParaClient.cs
- TableLayoutStyle.cs
- SyntaxCheck.cs
- ToolZone.cs
- BooleanToVisibilityConverter.cs
- EventLog.cs
- Calendar.cs
- RecordBuilder.cs
- CacheEntry.cs
- ApplicationActivator.cs
- TextPatternIdentifiers.cs
- BaseDataBoundControl.cs
- Cursors.cs
- KeyNotFoundException.cs
- FormClosingEvent.cs
- CodeExpressionStatement.cs
- ItemsChangedEventArgs.cs
- ListBindingConverter.cs
- HandlerBase.cs
- BitmapDecoder.cs
- WindowAutomationPeer.cs
- GridViewPageEventArgs.cs
- DbConnectionHelper.cs
- SimpleApplicationHost.cs
- ETagAttribute.cs
- ReflectionPermission.cs
- UnicastIPAddressInformationCollection.cs
- GACIdentityPermission.cs
- ReversePositionQuery.cs
- UIElementIsland.cs
- WebPartAddingEventArgs.cs
- TreeViewItem.cs