Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RemoteArgument.cs
- SingleAnimationBase.cs
- StrictAndMessageFilter.cs
- ImageCreator.cs
- ObjectConverter.cs
- ListChangedEventArgs.cs
- DeobfuscatingStream.cs
- SecurityDescriptor.cs
- MethodBody.cs
- NumericUpDown.cs
- FrameworkTextComposition.cs
- PropertyInfoSet.cs
- FlowDocumentReaderAutomationPeer.cs
- MsmqReceiveHelper.cs
- PasswordDeriveBytes.cs
- PhysicalFontFamily.cs
- DoubleMinMaxAggregationOperator.cs
- SimpleParser.cs
- CommonProperties.cs
- ToolstripProfessionalRenderer.cs
- NativeRightsManagementAPIsStructures.cs
- WebCategoryAttribute.cs
- ParseElement.cs
- objectquery_tresulttype.cs
- XmlSchemaSimpleTypeRestriction.cs
- RuleSetDialog.cs
- CollectionViewGroupInternal.cs
- ItemChangedEventArgs.cs
- TokenBasedSetEnumerator.cs
- ImageSource.cs
- QuadTree.cs
- WebPartZone.cs
- CollectionEditVerbManager.cs
- SqlCachedBuffer.cs
- ObjectDataSourceChooseMethodsPanel.cs
- PartBasedPackageProperties.cs
- ButtonChrome.cs
- WebHeaderCollection.cs
- ObjectListItem.cs
- ErasingStroke.cs
- GCHandleCookieTable.cs
- ArraySegment.cs
- AdornerLayer.cs
- JavaScriptSerializer.cs
- DataTableMappingCollection.cs
- TextBox.cs
- FormatConvertedBitmap.cs
- PrintPreviewDialog.cs
- ProcessModelSection.cs
- CookieParameter.cs
- Sequence.cs
- XmlRawWriter.cs
- Merger.cs
- QueueSurrogate.cs
- OperationResponse.cs
- StatusBar.cs
- AssemblyName.cs
- AmbiguousMatchException.cs
- ManagementDateTime.cs
- SoapObjectReader.cs
- TextFormattingConverter.cs
- FormsIdentity.cs
- WebPartConnectionsCancelEventArgs.cs
- SingleAnimation.cs
- ISCIIEncoding.cs
- Context.cs
- ACL.cs
- TreeNodeClickEventArgs.cs
- FontDialog.cs
- prompt.cs
- CounterSample.cs
- HTTPNotFoundHandler.cs
- Debug.cs
- WebServiceMethodData.cs
- TreeViewItemAutomationPeer.cs
- SqlTriggerContext.cs
- Control.cs
- DataGridViewCell.cs
- EncryptedKey.cs
- ResourcesGenerator.cs
- FieldTemplateUserControl.cs
- BidPrivateBase.cs
- PropertyPushdownHelper.cs
- CalendarAutoFormatDialog.cs
- Compiler.cs
- PropertyValueChangedEvent.cs
- ClientFormsAuthenticationCredentials.cs
- FlowDocumentPageViewerAutomationPeer.cs
- CheckBoxRenderer.cs
- NeutralResourcesLanguageAttribute.cs
- DirectoryLocalQuery.cs
- CapiHashAlgorithm.cs
- ApplyImportsAction.cs
- GridItemProviderWrapper.cs
- WindowsFormsSectionHandler.cs
- ExtensionsSection.cs
- AutomationPropertyChangedEventArgs.cs
- TrackingStringDictionary.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- UserControl.cs