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
- WebBrowserBase.cs
- XmlTypeMapping.cs
- HMACSHA1.cs
- CommandValueSerializer.cs
- UICuesEvent.cs
- SecurityDescriptor.cs
- MimeWriter.cs
- HTTPAPI_VERSION.cs
- TokenBasedSet.cs
- SoapReflector.cs
- TheQuery.cs
- XmlSchemaGroupRef.cs
- BamlBinaryReader.cs
- Identity.cs
- RequestDescription.cs
- Row.cs
- BrowsableAttribute.cs
- DigitalSignature.cs
- HTMLTagNameToTypeMapper.cs
- TextEndOfLine.cs
- TypeInitializationException.cs
- GeometryModel3D.cs
- ToolStripItemEventArgs.cs
- Polygon.cs
- VisualProxy.cs
- ZipIOCentralDirectoryBlock.cs
- BatchWriter.cs
- PointConverter.cs
- MimeFormatExtensions.cs
- MiniConstructorInfo.cs
- ImpersonateTokenRef.cs
- SafeNativeMethods.cs
- ChangeNode.cs
- GC.cs
- SecurityUniqueId.cs
- Comparer.cs
- HashHelper.cs
- DocumentPageView.cs
- SourceItem.cs
- PropertyFilter.cs
- PackageStore.cs
- TransformDescriptor.cs
- SafeSecurityHandles.cs
- RenderingEventArgs.cs
- TypeToken.cs
- PropertyRecord.cs
- SelectionHighlightInfo.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- GrowingArray.cs
- JoinQueryOperator.cs
- RegexCode.cs
- Span.cs
- TimeSpan.cs
- MapPathBasedVirtualPathProvider.cs
- DocumentXPathNavigator.cs
- StrokeNodeOperations.cs
- StyleTypedPropertyAttribute.cs
- UnauthorizedAccessException.cs
- PeerNearMe.cs
- XmlSortKeyAccumulator.cs
- SystemIPAddressInformation.cs
- GeneratedCodeAttribute.cs
- SelectionEditor.cs
- DynamicDataRoute.cs
- CleanUpVirtualizedItemEventArgs.cs
- TCEAdapterGenerator.cs
- Console.cs
- ParentQuery.cs
- XmlHierarchicalDataSourceView.cs
- SafeBitVector32.cs
- TransactionFilter.cs
- PrintingPermission.cs
- MailWriter.cs
- UrlPath.cs
- XmlILOptimizerVisitor.cs
- AnimationLayer.cs
- MetabaseServerConfig.cs
- HuffCodec.cs
- NullableFloatAverageAggregationOperator.cs
- TextCompositionEventArgs.cs
- Directory.cs
- FirstMatchCodeGroup.cs
- TakeOrSkipWhileQueryOperator.cs
- SchemaNames.cs
- XmlNullResolver.cs
- BindingContext.cs
- RadioButtonStandardAdapter.cs
- CurrencyWrapper.cs
- Input.cs
- StackOverflowException.cs
- HashFinalRequest.cs
- Function.cs
- HiddenFieldDesigner.cs
- ProxyHwnd.cs
- CodeValidator.cs
- ConfigurationPropertyAttribute.cs
- TextOutput.cs
- ExpressionBuilderCollection.cs
- PointCollectionConverter.cs
- FormViewUpdateEventArgs.cs