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
- Page.cs
- TreeViewEvent.cs
- Axis.cs
- MemberMaps.cs
- ProtocolElement.cs
- ConfigurationPropertyAttribute.cs
- RecommendedAsConfigurableAttribute.cs
- HwndMouseInputProvider.cs
- InfoCardSymmetricAlgorithm.cs
- TheQuery.cs
- WorkflowInstanceExtensionProvider.cs
- ZipIOExtraField.cs
- ProcessThread.cs
- PrintDialogException.cs
- ChangeDirector.cs
- ProcessHostFactoryHelper.cs
- ChangePassword.cs
- ExtentJoinTreeNode.cs
- Tokenizer.cs
- HttpApplicationFactory.cs
- DetailsViewModeEventArgs.cs
- FullTextLine.cs
- Timer.cs
- HtmlHead.cs
- NavigationEventArgs.cs
- UrlPropertyAttribute.cs
- OutputChannel.cs
- TypefaceMetricsCache.cs
- RegexWriter.cs
- DataServiceContext.cs
- ComponentManagerBroker.cs
- CompensationDesigner.cs
- SystemResources.cs
- PathSegment.cs
- XmlSchemaGroupRef.cs
- NamedPipeChannelListener.cs
- DbConnectionInternal.cs
- CodeSubDirectoriesCollection.cs
- FramingChannels.cs
- AsyncContentLoadedEventArgs.cs
- FormsAuthenticationModule.cs
- SchemaTableOptionalColumn.cs
- TextDecorationCollection.cs
- AuthenticationModuleElement.cs
- AnonymousIdentificationSection.cs
- ServiceInfo.cs
- UnwrappedTypesXmlSerializerManager.cs
- UnsafeNativeMethodsTablet.cs
- BindingExpressionBase.cs
- Directory.cs
- MachineKeySection.cs
- Html32TextWriter.cs
- DeliveryStrategy.cs
- ExpressionWriter.cs
- SelectionItemPattern.cs
- Domain.cs
- HttpModulesSection.cs
- SystemDiagnosticsSection.cs
- InternalConfigEventArgs.cs
- ClrPerspective.cs
- DES.cs
- DesignSurfaceManager.cs
- ObjectPersistData.cs
- InputMethodStateTypeInfo.cs
- TriggerBase.cs
- AstTree.cs
- ImageDrawing.cs
- COM2ExtendedTypeConverter.cs
- Missing.cs
- CustomGrammar.cs
- Bookmark.cs
- DoubleCollectionConverter.cs
- XamlGridLengthSerializer.cs
- NullableFloatAverageAggregationOperator.cs
- Span.cs
- ParseNumbers.cs
- XmlSchemaSet.cs
- HtmlInputRadioButton.cs
- FileLoadException.cs
- IndexedGlyphRun.cs
- Int16Converter.cs
- ChannelBinding.cs
- Section.cs
- COAUTHIDENTITY.cs
- DragEventArgs.cs
- ArraySortHelper.cs
- ToolboxItemImageConverter.cs
- FileReader.cs
- WebPermission.cs
- MailSettingsSection.cs
- SqlDataSourceCache.cs
- ColumnMap.cs
- GeometryGroup.cs
- XmlSchemaParticle.cs
- RegularExpressionValidator.cs
- ModelPropertyDescriptor.cs
- ObjectDataSourceEventArgs.cs
- FunctionDescription.cs
- ColorDialog.cs
- GetPageCompletedEventArgs.cs