Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- Dynamic.cs
- Token.cs
- HMACSHA512.cs
- Predicate.cs
- SqlProviderManifest.cs
- QilStrConcat.cs
- ExplicitDiscriminatorMap.cs
- Typography.cs
- RegexWorker.cs
- ExternalException.cs
- SqlUserDefinedAggregateAttribute.cs
- ParenthesizePropertyNameAttribute.cs
- ListParagraph.cs
- XmlMapping.cs
- TextEncodedRawTextWriter.cs
- PixelFormats.cs
- Command.cs
- ProfileSettings.cs
- SplitContainerDesigner.cs
- PolicyStatement.cs
- DrawingServices.cs
- MiniCustomAttributeInfo.cs
- BitmapSource.cs
- UserUseLicenseDictionaryLoader.cs
- CodeLinePragma.cs
- AndMessageFilterTable.cs
- DataSysAttribute.cs
- SelectionPatternIdentifiers.cs
- StrongNameIdentityPermission.cs
- SmiMetaDataProperty.cs
- DesignTimeDataBinding.cs
- SchemaElementDecl.cs
- XmlTextReader.cs
- FusionWrap.cs
- WebProxyScriptElement.cs
- ListViewGroup.cs
- PlaceHolder.cs
- Compilation.cs
- WindowsSpinner.cs
- ColumnBinding.cs
- ThicknessKeyFrameCollection.cs
- ElementProxy.cs
- Transform.cs
- __TransparentProxy.cs
- Deflater.cs
- EdmConstants.cs
- InstanceCreationEditor.cs
- GlyphInfoList.cs
- BasicViewGenerator.cs
- ParseHttpDate.cs
- XsltInput.cs
- objectresult_tresulttype.cs
- EntityCollection.cs
- ColumnHeader.cs
- DataTrigger.cs
- TreeIterator.cs
- SimpleFieldTemplateUserControl.cs
- EventQueueState.cs
- WebPartsPersonalizationAuthorization.cs
- Debug.cs
- MarkupExtensionReturnTypeAttribute.cs
- ConfigurationSectionCollection.cs
- DataGridViewHeaderCell.cs
- XmlSchemaAttribute.cs
- CustomCredentialPolicy.cs
- UrlPath.cs
- DynamicRouteExpression.cs
- TextOnlyOutput.cs
- DBSchemaRow.cs
- HGlobalSafeHandle.cs
- SpeechEvent.cs
- StylusTip.cs
- ColorConvertedBitmap.cs
- HttpResponseMessageProperty.cs
- SetIterators.cs
- DeclaredTypeElement.cs
- ClientFormsIdentity.cs
- CallContext.cs
- ServiceNotStartedException.cs
- ListCollectionView.cs
- TransformerInfo.cs
- BuildManager.cs
- _NtlmClient.cs
- ArraySortHelper.cs
- StrongName.cs
- StateChangeEvent.cs
- TypeNameConverter.cs
- XmlIncludeAttribute.cs
- MediaElementAutomationPeer.cs
- HttpModuleActionCollection.cs
- HealthMonitoringSectionHelper.cs
- Funcletizer.cs
- AuthenticationConfig.cs
- Compiler.cs
- ThrowHelper.cs
- ToolStripButton.cs
- NodeInfo.cs
- util.cs
- DocumentApplicationDocumentViewer.cs
- SystemIPv6InterfaceProperties.cs