Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _HelperAsyncResults.cs
- LinqDataSourceUpdateEventArgs.cs
- ProtocolViolationException.cs
- AssociationSetMetadata.cs
- DataListItem.cs
- MainMenu.cs
- LocalizationCodeDomSerializer.cs
- WindowsTab.cs
- ResourceType.cs
- safelinkcollection.cs
- DataKey.cs
- ListView.cs
- XmlSchema.cs
- OptionalMessageQuery.cs
- ExpressionBuilder.cs
- DocumentOrderQuery.cs
- DataPointer.cs
- DeadCharTextComposition.cs
- DesignerTransaction.cs
- OneToOneMappingSerializer.cs
- FormClosedEvent.cs
- PassportAuthentication.cs
- IndexingContentUnit.cs
- X509CertificateStore.cs
- FixedTextSelectionProcessor.cs
- ArrayList.cs
- EdmFunction.cs
- NullEntityWrapper.cs
- VisualBrush.cs
- AddressingVersion.cs
- TaskHelper.cs
- AttributeQuery.cs
- DataGridViewRowEventArgs.cs
- PartitionerStatic.cs
- Preprocessor.cs
- ProcessHost.cs
- SqlConnectionPoolProviderInfo.cs
- UpdateInfo.cs
- wgx_commands.cs
- UriParserTemplates.cs
- ObjectList.cs
- Propagator.JoinPropagator.cs
- ObjectDataSourceDisposingEventArgs.cs
- D3DImage.cs
- QilScopedVisitor.cs
- GroupBoxAutomationPeer.cs
- PolyBezierSegment.cs
- StaticSiteMapProvider.cs
- WebUtil.cs
- ActivationArguments.cs
- ModelVisual3D.cs
- RowBinding.cs
- HtmlInputReset.cs
- WebPartEditorOkVerb.cs
- ChildrenQuery.cs
- EventData.cs
- CustomSignedXml.cs
- DefaultPropertyAttribute.cs
- RegexRunnerFactory.cs
- SiteMapNodeCollection.cs
- AdornerLayer.cs
- DocumentStatusResources.cs
- ListItemViewControl.cs
- EntityDataReader.cs
- XPathQueryGenerator.cs
- BindingGroup.cs
- AutomationProperties.cs
- Italic.cs
- DashStyle.cs
- MenuItemBindingCollection.cs
- DataGridViewButtonCell.cs
- Queue.cs
- QueryStatement.cs
- TimeoutValidationAttribute.cs
- PreDigestedSignedInfo.cs
- ProtocolElement.cs
- AlgoModule.cs
- XmlWhitespace.cs
- DataSysAttribute.cs
- RectAnimationUsingKeyFrames.cs
- LongValidatorAttribute.cs
- TypeHelper.cs
- SuppressMergeCheckAttribute.cs
- IPAddressCollection.cs
- SingleAnimationUsingKeyFrames.cs
- FileInfo.cs
- TextFormatterImp.cs
- KeyToListMap.cs
- OutputCacheSettingsSection.cs
- SelectingProviderEventArgs.cs
- CollectionConverter.cs
- RequestContextBase.cs
- SoapMessage.cs
- ChangeTracker.cs
- TextLineResult.cs
- FormDocumentDesigner.cs
- SqlCaseSimplifier.cs
- ContentElement.cs
- ProfessionalColors.cs
- SafeRightsManagementSessionHandle.cs