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
- ListViewContainer.cs
- FilePrompt.cs
- TreeViewImageIndexConverter.cs
- SafeTimerHandle.cs
- DataTemplate.cs
- SoapAttributeAttribute.cs
- UserInitiatedNavigationPermission.cs
- WorkflowInstanceRecord.cs
- ConfigurationElementCollection.cs
- TextWriterTraceListener.cs
- Rotation3DAnimationUsingKeyFrames.cs
- EventLogEntry.cs
- ProcessExitedException.cs
- Label.cs
- ListItemConverter.cs
- TextEditorMouse.cs
- FieldNameLookup.cs
- PointCollection.cs
- SpotLight.cs
- InputScopeManager.cs
- ConfigXmlCDataSection.cs
- SupportingTokenAuthenticatorSpecification.cs
- CollectionChangedEventManager.cs
- HtmlInputRadioButton.cs
- CompilerState.cs
- SystemColors.cs
- RemoveStoryboard.cs
- AssemblyAttributesGoHere.cs
- WeakReferenceEnumerator.cs
- ConfigsHelper.cs
- CodeDomLocalizationProvider.cs
- XPathEmptyIterator.cs
- DefaultPropertyAttribute.cs
- ControlTemplate.cs
- PropertyEmitterBase.cs
- CachedFontFamily.cs
- ActiveXMessageFormatter.cs
- CodeLabeledStatement.cs
- DataList.cs
- ServiceManager.cs
- XmlDictionaryReader.cs
- XmlNamespaceDeclarationsAttribute.cs
- ExecutionScope.cs
- AttributeConverter.cs
- _ListenerRequestStream.cs
- Latin1Encoding.cs
- XmlSchemaNotation.cs
- DataGridAddNewRow.cs
- WsdlBuildProvider.cs
- UrlAuthFailedErrorFormatter.cs
- MsmqIntegrationMessageProperty.cs
- TemplateParser.cs
- Pointer.cs
- CredentialCache.cs
- WebPartAddingEventArgs.cs
- BitmapMetadataEnumerator.cs
- ErasingStroke.cs
- XsltLoader.cs
- CatalogPartCollection.cs
- HScrollBar.cs
- Subtract.cs
- LinkLabel.cs
- DbConnectionPoolOptions.cs
- ListView.cs
- UnsafeNativeMethods.cs
- OracleLob.cs
- PrimitiveDataContract.cs
- ScriptingJsonSerializationSection.cs
- ChannelManagerHelpers.cs
- Int32Converter.cs
- ToolStripItemRenderEventArgs.cs
- TableDetailsRow.cs
- AutomationElementIdentifiers.cs
- BrowserCapabilitiesCodeGenerator.cs
- StorageEndPropertyMapping.cs
- RegistrationServices.cs
- PrinterResolution.cs
- _BufferOffsetSize.cs
- CodeDelegateCreateExpression.cs
- XmlDictionaryString.cs
- DPCustomTypeDescriptor.cs
- ReceiveActivity.cs
- CompilationUtil.cs
- BuildProviderUtils.cs
- PeerNameRecord.cs
- NamedObject.cs
- StylusPointPropertyInfo.cs
- WebResourceUtil.cs
- MatrixValueSerializer.cs
- figurelength.cs
- PointHitTestResult.cs
- DtdParser.cs
- ElementFactory.cs
- GenerateTemporaryTargetAssembly.cs
- ClientRuntimeConfig.cs
- SystemTcpStatistics.cs
- XmlSerializerSection.cs
- Matrix.cs
- StringResourceManager.cs
- CardSpacePolicyElement.cs