Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- StoragePropertyMapping.cs
- ValidationRule.cs
- WebEventTraceProvider.cs
- WebPartCancelEventArgs.cs
- TemplateBaseAction.cs
- CFGGrammar.cs
- ContextMarshalException.cs
- OverflowException.cs
- ButtonBase.cs
- CipherData.cs
- PageRequestManager.cs
- RestrictedTransactionalPackage.cs
- PrimitiveOperationFormatter.cs
- XPathMultyIterator.cs
- ControlType.cs
- CodeGotoStatement.cs
- StorageEndPropertyMapping.cs
- HtmlControl.cs
- ImageClickEventArgs.cs
- CreateUserWizardDesigner.cs
- ListControl.cs
- validationstate.cs
- HtmlInputCheckBox.cs
- IconConverter.cs
- XsdDataContractExporter.cs
- HTMLTagNameToTypeMapper.cs
- BitArray.cs
- NativeMethodsCLR.cs
- DatatypeImplementation.cs
- WorkflowDesignerColors.cs
- SHA1.cs
- XmlDataImplementation.cs
- FontWeight.cs
- DelimitedListTraceListener.cs
- ImageClickEventArgs.cs
- Socket.cs
- ToolTipAutomationPeer.cs
- ParserExtension.cs
- StrokeNodeData.cs
- BasicExpressionVisitor.cs
- AuditLevel.cs
- InheritanceRules.cs
- CodePrimitiveExpression.cs
- DbDataReader.cs
- RoutedEventConverter.cs
- MdiWindowListItemConverter.cs
- OdbcFactory.cs
- COAUTHIDENTITY.cs
- XmlSchemaGroup.cs
- SapiRecoInterop.cs
- Selection.cs
- WorkerRequest.cs
- ApplicationCommands.cs
- Point3D.cs
- MouseBinding.cs
- TextServicesDisplayAttribute.cs
- DocumentOrderQuery.cs
- PersistNameAttribute.cs
- VirtualPathProvider.cs
- Pen.cs
- ObfuscationAttribute.cs
- CellNormalizer.cs
- OdbcException.cs
- MasterPage.cs
- ObjectViewListener.cs
- TextSelectionHelper.cs
- XPathDocumentIterator.cs
- PrintDocument.cs
- contentDescriptor.cs
- VarRefManager.cs
- FileLogRecordEnumerator.cs
- AbandonedMutexException.cs
- RawStylusSystemGestureInputReport.cs
- UncommonField.cs
- assertwrapper.cs
- TrustLevel.cs
- ShellProvider.cs
- StringUtil.cs
- TimeSpanOrInfiniteConverter.cs
- RefreshPropertiesAttribute.cs
- ValueChangedEventManager.cs
- SynchronizedDispatch.cs
- documentsequencetextcontainer.cs
- CaseInsensitiveHashCodeProvider.cs
- EmptyQuery.cs
- ToolStripItemEventArgs.cs
- MemberJoinTreeNode.cs
- PerspectiveCamera.cs
- BinHexEncoder.cs
- DataBindingExpressionBuilder.cs
- VScrollBar.cs
- IntSecurity.cs
- OdbcConnectionPoolProviderInfo.cs
- NamespaceCollection.cs
- TaiwanCalendar.cs
- AlignmentXValidation.cs
- ZipArchive.cs
- DataBindingHandlerAttribute.cs
- EmptyCollection.cs
- CacheChildrenQuery.cs