Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntityViewGenerator.cs
- Splitter.cs
- BufferedOutputStream.cs
- MethodBody.cs
- TypeValidationEventArgs.cs
- ISessionStateStore.cs
- ImageFormatConverter.cs
- ExpressionBuilderCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- CodeAccessPermission.cs
- PrivilegedConfigurationManager.cs
- ProcessModuleDesigner.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- VirtualPathUtility.cs
- _TLSstream.cs
- HandleExceptionArgs.cs
- StringValueSerializer.cs
- WebConfigurationFileMap.cs
- Dictionary.cs
- ComponentCollection.cs
- ButtonBase.cs
- ObjectParameterCollection.cs
- LinqDataSource.cs
- WindowInteropHelper.cs
- DynamicQueryableWrapper.cs
- _Semaphore.cs
- BufferBuilder.cs
- ReadOnlyDictionary.cs
- XmlChildEnumerator.cs
- SQLRoleProvider.cs
- FlowDocumentPaginator.cs
- AccessDataSource.cs
- XmlSiteMapProvider.cs
- UidPropertyAttribute.cs
- OleDbParameter.cs
- XmlQueryTypeFactory.cs
- DataFormat.cs
- XmlWhitespace.cs
- PolyLineSegmentFigureLogic.cs
- Triplet.cs
- ColorIndependentAnimationStorage.cs
- ASCIIEncoding.cs
- StylusPlugInCollection.cs
- MemberRelationshipService.cs
- ProjectionPath.cs
- DateTimeFormatInfoScanner.cs
- ComponentDesigner.cs
- login.cs
- SetStoryboardSpeedRatio.cs
- UIElement.cs
- x509utils.cs
- RowTypePropertyElement.cs
- XmlSchemaSimpleContentRestriction.cs
- ImageSourceConverter.cs
- VirtualDirectoryMapping.cs
- TextSyndicationContent.cs
- PageThemeBuildProvider.cs
- ValidationRuleCollection.cs
- IndexedGlyphRun.cs
- Emitter.cs
- BinaryParser.cs
- GeneralTransform.cs
- XPathExpr.cs
- EventHandlerList.cs
- ChineseLunisolarCalendar.cs
- SharedDp.cs
- BehaviorService.cs
- WebPartZoneCollection.cs
- LogPolicy.cs
- LiteralLink.cs
- ErrorFormatterPage.cs
- FaultContext.cs
- SortAction.cs
- DocumentApplication.cs
- BindValidator.cs
- DataTableTypeConverter.cs
- ToolZone.cs
- PrintController.cs
- DbModificationCommandTree.cs
- HttpWriter.cs
- RequestContext.cs
- OleDbPropertySetGuid.cs
- WebPartConnectionsCancelEventArgs.cs
- EditorBrowsableAttribute.cs
- ResourceDescriptionAttribute.cs
- IntegerFacetDescriptionElement.cs
- SettingsProviderCollection.cs
- _TimerThread.cs
- TakeOrSkipWhileQueryOperator.cs
- DataColumnChangeEvent.cs
- PersonalizableTypeEntry.cs
- CompilationSection.cs
- ContextQuery.cs
- _SslStream.cs
- ConstructorBuilder.cs
- MessageQueueConverter.cs
- DotExpr.cs
- ConfigXmlSignificantWhitespace.cs
- NumericExpr.cs
- ToolStripScrollButton.cs