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
- PlatformCulture.cs
- NonPrimarySelectionGlyph.cs
- ComAwareEventInfo.cs
- NamedPipeProcessProtocolHandler.cs
- View.cs
- XmlDomTextWriter.cs
- MessageEncoderFactory.cs
- RowToFieldTransformer.cs
- BamlRecordWriter.cs
- NativeMethods.cs
- externdll.cs
- IndexedString.cs
- FigureHelper.cs
- odbcmetadatacollectionnames.cs
- GridViewColumnHeaderAutomationPeer.cs
- CaseStatement.cs
- SQLStringStorage.cs
- FixUpCollection.cs
- HostProtectionPermission.cs
- CultureInfoConverter.cs
- WebBrowserNavigatingEventHandler.cs
- RenameRuleObjectDialog.Designer.cs
- CodeCatchClauseCollection.cs
- Literal.cs
- basecomparevalidator.cs
- Journal.cs
- RemoveFromCollection.cs
- WsdlInspector.cs
- CacheAxisQuery.cs
- UnknownBitmapDecoder.cs
- RenderData.cs
- XmlSiteMapProvider.cs
- XhtmlStyleClass.cs
- DecoderExceptionFallback.cs
- Environment.cs
- ListBoxItemWrapperAutomationPeer.cs
- PersonalizablePropertyEntry.cs
- RSAPKCS1SignatureFormatter.cs
- SafeRightsManagementHandle.cs
- WorkflowTerminatedException.cs
- WindowsToolbarAsMenu.cs
- MetafileHeaderWmf.cs
- UserControl.cs
- PerformanceCounterPermissionEntryCollection.cs
- GlyphRun.cs
- MarkerProperties.cs
- ServiceMemoryGates.cs
- Command.cs
- NullRuntimeConfig.cs
- SelectedDatesCollection.cs
- VirtualPathProvider.cs
- NoClickablePointException.cs
- RandomNumberGenerator.cs
- SecurityResources.cs
- NameValueCollection.cs
- PageThemeParser.cs
- PackageProperties.cs
- BooleanSwitch.cs
- ColorDialog.cs
- UIHelper.cs
- FileDialog_Vista_Interop.cs
- CreateRefExpr.cs
- BuildDependencySet.cs
- TemplateLookupAction.cs
- PropertyRef.cs
- NamespaceQuery.cs
- UnauthorizedWebPart.cs
- SqlDependencyListener.cs
- Timeline.cs
- ReferenceAssemblyAttribute.cs
- RuntimeHelpers.cs
- Root.cs
- RoleGroup.cs
- CharEntityEncoderFallback.cs
- NetTcpSecurityElement.cs
- RoutedEventHandlerInfo.cs
- FindCriteriaElement.cs
- thaishape.cs
- ProfileSection.cs
- EventLogPermissionAttribute.cs
- HttpCookiesSection.cs
- RuntimeEnvironment.cs
- TraversalRequest.cs
- SortAction.cs
- RayHitTestParameters.cs
- XmlEncodedRawTextWriter.cs
- ReflectionServiceProvider.cs
- SamlSecurityTokenAuthenticator.cs
- GridViewRow.cs
- NameValuePair.cs
- PeerValidationBehavior.cs
- SocketInformation.cs
- LocalizableAttribute.cs
- Visual3D.cs
- ConfigsHelper.cs
- SrgsSemanticInterpretationTag.cs
- DocumentEventArgs.cs
- ChangeDirector.cs
- PropertyHelper.cs
- WebPartConnectionsDisconnectVerb.cs