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
- ConfigXmlWhitespace.cs
- FrameworkElementFactoryMarkupObject.cs
- SelectedGridItemChangedEvent.cs
- XmlSiteMapProvider.cs
- QueryStatement.cs
- ContentDisposition.cs
- Utilities.cs
- WindowsButton.cs
- HotSpot.cs
- InheritanceContextChangedEventManager.cs
- Win32Native.cs
- RegexWorker.cs
- DetailsViewPageEventArgs.cs
- ManifestSignedXml.cs
- NavigatorInput.cs
- Focus.cs
- VarInfo.cs
- AstNode.cs
- Scanner.cs
- OracleEncoding.cs
- DelegateSerializationHolder.cs
- odbcmetadatafactory.cs
- SafeCryptoHandles.cs
- RayMeshGeometry3DHitTestResult.cs
- InvokeMethodActivityDesigner.cs
- AtomMaterializerLog.cs
- WaveHeader.cs
- SqlNode.cs
- HttpListenerElement.cs
- ObjectListCommandsPage.cs
- WebBrowsableAttribute.cs
- DependencyPropertyKey.cs
- TextTreeNode.cs
- Animatable.cs
- DoubleAnimationUsingPath.cs
- KeyboardDevice.cs
- WorkflowOperationBehavior.cs
- ColorKeyFrameCollection.cs
- XPathNode.cs
- DataObjectCopyingEventArgs.cs
- LowerCaseStringConverter.cs
- ObjectView.cs
- MetadataCache.cs
- PartialCachingControl.cs
- IdentityHolder.cs
- CryptoApi.cs
- ParameterModifier.cs
- TreeChangeInfo.cs
- InternalControlCollection.cs
- SqlWebEventProvider.cs
- MenuItemStyle.cs
- HWStack.cs
- EventListener.cs
- MetadataPropertyAttribute.cs
- BinaryParser.cs
- UdpSocket.cs
- ExpressionBuilderCollection.cs
- BinaryFormatterWriter.cs
- ListViewInsertionMark.cs
- XmlArrayItemAttribute.cs
- IdnElement.cs
- DataGridAddNewRow.cs
- HyperLink.cs
- OracleParameterBinding.cs
- ResourceReferenceKeyNotFoundException.cs
- XMLUtil.cs
- ObjectDataSourceSelectingEventArgs.cs
- AutomationProperty.cs
- BamlMapTable.cs
- rsa.cs
- X509Chain.cs
- PersonalizationDictionary.cs
- _AutoWebProxyScriptHelper.cs
- ApplicationManager.cs
- SqlBooleanMismatchVisitor.cs
- HttpPostProtocolReflector.cs
- ColorPalette.cs
- WmlMobileTextWriter.cs
- WebServicesSection.cs
- NativeCompoundFileAPIs.cs
- TabControlCancelEvent.cs
- WebSysDescriptionAttribute.cs
- ExpressionCopier.cs
- Viewport3DAutomationPeer.cs
- SqlBuilder.cs
- AttributeCollection.cs
- Function.cs
- TypeReference.cs
- OdbcHandle.cs
- DodSequenceMerge.cs
- baseaxisquery.cs
- QueryCreatedEventArgs.cs
- PrintingPermissionAttribute.cs
- DynamicDocumentPaginator.cs
- EventSinkHelperWriter.cs
- SvcMapFileLoader.cs
- TraceHandler.cs
- TemplateComponentConnector.cs
- DataControlCommands.cs
- TextReader.cs