Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- StateRuntime.cs
- TextTreeRootTextBlock.cs
- UIEndRequest.cs
- TaskSchedulerException.cs
- RuleValidation.cs
- PropertyOverridesTypeEditor.cs
- TextTreeNode.cs
- FileVersionInfo.cs
- ServiceChannelFactory.cs
- DataSourceCacheDurationConverter.cs
- AspNetSynchronizationContext.cs
- VariableExpressionConverter.cs
- BooleanExpr.cs
- SecurityContextKeyIdentifierClause.cs
- CodeArrayCreateExpression.cs
- ItemsPanelTemplate.cs
- BamlStream.cs
- PassportPrincipal.cs
- MetadataStore.cs
- CompiledRegexRunnerFactory.cs
- ComplexPropertyEntry.cs
- Soap12ProtocolImporter.cs
- ExtenderProvidedPropertyAttribute.cs
- ExtenderProvidedPropertyAttribute.cs
- FramingFormat.cs
- SeparatorAutomationPeer.cs
- NullableDecimalAverageAggregationOperator.cs
- ProcessHostConfigUtils.cs
- CommandID.cs
- DbResourceAllocator.cs
- JsonQNameDataContract.cs
- TreeNodeCollection.cs
- MarshalByRefObject.cs
- Int32AnimationUsingKeyFrames.cs
- WorkerRequest.cs
- MessageBox.cs
- DataGridViewRowPrePaintEventArgs.cs
- _UriTypeConverter.cs
- MenuItemBinding.cs
- SrgsNameValueTag.cs
- DesignerOptions.cs
- ProfileGroupSettings.cs
- HttpPostedFileBase.cs
- PlanCompilerUtil.cs
- BitmapImage.cs
- SqlMethodCallConverter.cs
- SoapFault.cs
- CodeDirectoryCompiler.cs
- CombinedGeometry.cs
- LayoutSettings.cs
- CacheSection.cs
- TreeBuilder.cs
- MouseGestureConverter.cs
- Shape.cs
- XmlNamedNodeMap.cs
- UnsafeNativeMethods.cs
- _ProxyChain.cs
- SpeechEvent.cs
- TrackingProfileCache.cs
- DateTimeFormat.cs
- SecureConversationServiceCredential.cs
- VisualProxy.cs
- NullReferenceException.cs
- StronglyTypedResourceBuilder.cs
- ControlBuilderAttribute.cs
- WindowsNonControl.cs
- ErrorRuntimeConfig.cs
- Fonts.cs
- ObjectAssociationEndMapping.cs
- EditorZoneBase.cs
- DbConnectionOptions.cs
- SortedDictionary.cs
- InputProcessorProfilesLoader.cs
- HttpListenerResponse.cs
- OptionalRstParameters.cs
- DataBoundControl.cs
- ScrollProperties.cs
- AddInSegmentDirectoryNotFoundException.cs
- HandlerBase.cs
- PageDeviceFont.cs
- NetCodeGroup.cs
- TreeIterator.cs
- FileSystemEventArgs.cs
- Tuple.cs
- SqlRowUpdatingEvent.cs
- ModuleConfigurationInfo.cs
- SafeTimerHandle.cs
- CalendarDay.cs
- ArraySegment.cs
- SafeFileHandle.cs
- DesignerSerializationVisibilityAttribute.cs
- Environment.cs
- XsdDateTime.cs
- Identity.cs
- BitmapEffectGroup.cs
- DataGridViewToolTip.cs
- FileLogRecord.cs
- ProjectionCamera.cs
- CertificateElement.cs
- ObjectStateManagerMetadata.cs