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
- FormsAuthenticationConfiguration.cs
- XmlDownloadManager.cs
- Int64AnimationUsingKeyFrames.cs
- DataTable.cs
- EpmTargetTree.cs
- SevenBitStream.cs
- SerialPinChanges.cs
- MatrixTransform.cs
- MonthChangedEventArgs.cs
- ProvidePropertyAttribute.cs
- SecurityException.cs
- HandlerFactoryCache.cs
- RemotingConfiguration.cs
- ToolStripRenderEventArgs.cs
- SiteMapDataSourceView.cs
- StackBuilderSink.cs
- AnnotationAdorner.cs
- ErrorEventArgs.cs
- HttpListenerPrefixCollection.cs
- AnnotationComponentChooser.cs
- SafeLibraryHandle.cs
- WrapPanel.cs
- ConnectionStringSettings.cs
- VirtualPath.cs
- CompoundFileReference.cs
- ManipulationPivot.cs
- BindUriHelper.cs
- OuterGlowBitmapEffect.cs
- Action.cs
- UriSectionReader.cs
- OutputBuffer.cs
- AxDesigner.cs
- CompilerWrapper.cs
- TextEffect.cs
- ObjectDataSourceEventArgs.cs
- TableCellCollection.cs
- EdmRelationshipRoleAttribute.cs
- MeshGeometry3D.cs
- SoapException.cs
- ProvidersHelper.cs
- ListViewItem.cs
- DBDataPermissionAttribute.cs
- WhitespaceRule.cs
- Peer.cs
- WebPartTransformerAttribute.cs
- FilterEventArgs.cs
- TagNameToTypeMapper.cs
- Icon.cs
- Geometry3D.cs
- NamespaceInfo.cs
- SmtpDigestAuthenticationModule.cs
- WhiteSpaceTrimStringConverter.cs
- DataGridViewDataErrorEventArgs.cs
- HttpProfileBase.cs
- Help.cs
- StorageModelBuildProvider.cs
- TableLayoutColumnStyleCollection.cs
- HMACSHA1.cs
- Content.cs
- PropertyMappingExceptionEventArgs.cs
- designeractionbehavior.cs
- CodeSnippetExpression.cs
- MemberRelationshipService.cs
- HwndSourceKeyboardInputSite.cs
- BinarySerializer.cs
- XmlSchemaAttributeGroup.cs
- ExitEventArgs.cs
- CodeVariableReferenceExpression.cs
- UnmanagedMemoryStreamWrapper.cs
- ResourcePool.cs
- DataGridViewCellCancelEventArgs.cs
- AffineTransform3D.cs
- ResourceReferenceExpression.cs
- SHA512.cs
- DataMember.cs
- SqlDuplicator.cs
- TagMapCollection.cs
- VirtualPathProvider.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- FieldToken.cs
- CroppedBitmap.cs
- _FixedSizeReader.cs
- Light.cs
- SizeF.cs
- DesigntimeLicenseContextSerializer.cs
- ButtonPopupAdapter.cs
- Renderer.cs
- PageStatePersister.cs
- WorkflowRuntime.cs
- StrongNameHelpers.cs
- StringFreezingAttribute.cs
- NamedPipeProcessProtocolHandler.cs
- QueryAccessibilityHelpEvent.cs
- DataGridCellItemAutomationPeer.cs
- XmlCharCheckingWriter.cs
- glyphs.cs
- XPathException.cs
- ListItemDetailViewAttribute.cs
- BaseTypeViewSchema.cs
- ApplicationManager.cs