Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- KoreanCalendar.cs
- PageParserFilter.cs
- Container.cs
- IdentityModelDictionary.cs
- NumericUpDownAccelerationCollection.cs
- Semaphore.cs
- XmlSiteMapProvider.cs
- ComponentResourceKey.cs
- AttributeEmitter.cs
- RotateTransform.cs
- NetDataContractSerializer.cs
- OutKeywords.cs
- XmlSchemaSet.cs
- SharedConnectionListener.cs
- Geometry3D.cs
- ManipulationInertiaStartingEventArgs.cs
- SqlNotificationEventArgs.cs
- ManipulationPivot.cs
- ToolStripItemCollection.cs
- GlyphTypeface.cs
- AddInServer.cs
- Substitution.cs
- FlowLayoutSettings.cs
- webeventbuffer.cs
- ConcatQueryOperator.cs
- WCFModelStrings.Designer.cs
- AddingNewEventArgs.cs
- HttpStreamMessageEncoderFactory.cs
- CommentAction.cs
- RegexInterpreter.cs
- IPEndPointCollection.cs
- SqlCachedBuffer.cs
- Comparer.cs
- metadatamappinghashervisitor.cs
- XPathSingletonIterator.cs
- XmlMembersMapping.cs
- TypeSource.cs
- EntityDataSourceWizardForm.cs
- DataGridViewCellValidatingEventArgs.cs
- PtsHost.cs
- WinFormsComponentEditor.cs
- SqlInternalConnectionTds.cs
- _OSSOCK.cs
- ArrayListCollectionBase.cs
- CaseInsensitiveHashCodeProvider.cs
- FlowDocumentPage.cs
- Win32.cs
- PackageRelationshipCollection.cs
- LambdaCompiler.Generated.cs
- CatalogZone.cs
- TabPage.cs
- XmlSchemaSequence.cs
- GlobalProxySelection.cs
- CheckBoxRenderer.cs
- MobileUserControlDesigner.cs
- Table.cs
- SplitterCancelEvent.cs
- GridViewUpdateEventArgs.cs
- SqlFunctionAttribute.cs
- FillErrorEventArgs.cs
- ListSortDescriptionCollection.cs
- SmtpClient.cs
- WasEndpointConfigContainer.cs
- DynamicArgumentDialog.cs
- HtmlTableRowCollection.cs
- ListSurrogate.cs
- WebServiceEnumData.cs
- PreProcessor.cs
- SendMailErrorEventArgs.cs
- TextDecoration.cs
- DataExpression.cs
- WebPartDescriptionCollection.cs
- InProcStateClientManager.cs
- XmlSerializationReader.cs
- RequiredAttributeAttribute.cs
- EventProxy.cs
- EntryPointNotFoundException.cs
- HttpServerUtilityBase.cs
- CharUnicodeInfo.cs
- ExpandCollapseProviderWrapper.cs
- ResourceReferenceKeyNotFoundException.cs
- WizardDesigner.cs
- DataGridViewCellValueEventArgs.cs
- XmlStringTable.cs
- SecurityState.cs
- MaterialGroup.cs
- SHA1Managed.cs
- ScaleTransform3D.cs
- FontSource.cs
- ContainerUtilities.cs
- MetadataArtifactLoaderResource.cs
- SelectorItemAutomationPeer.cs
- FrugalMap.cs
- DataGridViewCellEventArgs.cs
- LZCodec.cs
- RequestResponse.cs
- UIElementParaClient.cs
- Style.cs
- TemplatedWizardStep.cs
- SafeCryptHandles.cs