Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DragStartedEventArgs.cs
- IssuanceTokenProviderState.cs
- filewebrequest.cs
- DataListItem.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- Marshal.cs
- ReceiveContent.cs
- MarkupCompiler.cs
- TimeStampChecker.cs
- BindToObject.cs
- ConnectionsZone.cs
- ResourceExpression.cs
- DispatcherEventArgs.cs
- DefaultAssemblyResolver.cs
- SafeUserTokenHandle.cs
- Util.cs
- SafeSecurityHandles.cs
- ValidationHelper.cs
- Clock.cs
- VersionedStreamOwner.cs
- FlagPanel.cs
- ProtocolsSection.cs
- ItemType.cs
- RtfNavigator.cs
- OleDbConnection.cs
- DateTimeUtil.cs
- AppDomainProtocolHandler.cs
- DataGridColumnEventArgs.cs
- PrefixQName.cs
- HwndAppCommandInputProvider.cs
- DbConnectionHelper.cs
- ParallelRangeManager.cs
- SignatureDescription.cs
- TypeLibConverter.cs
- SyncOperationState.cs
- DataBindingCollection.cs
- Application.cs
- FragmentQueryKB.cs
- CrossSiteScriptingValidation.cs
- FillBehavior.cs
- BookmarkScopeInfo.cs
- FunctionQuery.cs
- WorkflowRuntimeServicesBehavior.cs
- ByteAnimationBase.cs
- MULTI_QI.cs
- X509UI.cs
- COSERVERINFO.cs
- VectorAnimationUsingKeyFrames.cs
- SerializationHelper.cs
- RectangleF.cs
- MethodSet.cs
- Math.cs
- relpropertyhelper.cs
- VirtualPath.cs
- SQLMoney.cs
- BitmapEffectInput.cs
- SecurityRuntime.cs
- BezierSegment.cs
- TransformGroup.cs
- PositiveTimeSpanValidatorAttribute.cs
- HostingPreferredMapPath.cs
- MultipleFilterMatchesException.cs
- TextDecorations.cs
- DataPagerFieldItem.cs
- Internal.cs
- DecimalStorage.cs
- WebServiceTypeData.cs
- OleDbRowUpdatedEvent.cs
- RNGCryptoServiceProvider.cs
- DbgCompiler.cs
- FrameworkObject.cs
- ToolTipAutomationPeer.cs
- TextMarkerSource.cs
- CmsInterop.cs
- SafeViewOfFileHandle.cs
- GetPageCompletedEventArgs.cs
- SafeBitVector32.cs
- DataServiceEntityAttribute.cs
- WebPartUserCapability.cs
- PlaceHolder.cs
- MessageHeader.cs
- SqlClientMetaDataCollectionNames.cs
- MobileListItem.cs
- ModelPropertyCollectionImpl.cs
- SamlSecurityToken.cs
- ServiceMetadataExtension.cs
- TemplateBindingExpression.cs
- TargetException.cs
- PersistChildrenAttribute.cs
- SystemResourceHost.cs
- TrackingProfileCache.cs
- FormatVersion.cs
- HtmlDocument.cs
- CodeTypeDeclaration.cs
- ComponentChangingEvent.cs
- StrokeCollectionDefaultValueFactory.cs
- CookieParameter.cs
- HtmlTableCell.cs
- CaseInsensitiveComparer.cs
- ButtonBaseAutomationPeer.cs