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
- UnknownWrapper.cs
- Query.cs
- Table.cs
- AccessibleObject.cs
- Matrix3DStack.cs
- DataGridViewRowsAddedEventArgs.cs
- BitStack.cs
- DataGridViewSelectedCellCollection.cs
- PerformanceCounterPermissionEntry.cs
- BlurEffect.cs
- GradientStop.cs
- EntityDataSourceQueryBuilder.cs
- DetailsViewRowCollection.cs
- ModelItemImpl.cs
- HuffmanTree.cs
- XmlSchemaSimpleContentRestriction.cs
- DateTimeFormatInfo.cs
- SqlDataSourceSelectingEventArgs.cs
- WmpBitmapDecoder.cs
- FontWeightConverter.cs
- SystemInformation.cs
- WebPartCatalogAddVerb.cs
- DataColumnChangeEvent.cs
- ResourceDescriptionAttribute.cs
- XmlSerializerAssemblyAttribute.cs
- DataGridViewMethods.cs
- WebBrowser.cs
- HwndSource.cs
- DeferredTextReference.cs
- InkCollectionBehavior.cs
- Debug.cs
- XmlSchemaComplexContentExtension.cs
- TextCharacters.cs
- XmlnsPrefixAttribute.cs
- UnmanagedMemoryAccessor.cs
- WebServiceHost.cs
- TreeViewItemAutomationPeer.cs
- Content.cs
- ControlCachePolicy.cs
- XmlSubtreeReader.cs
- AutomationPatternInfo.cs
- ColumnCollection.cs
- OpacityConverter.cs
- Stackframe.cs
- Context.cs
- ProcessHostConfigUtils.cs
- PageContentAsyncResult.cs
- MbpInfo.cs
- MissingMemberException.cs
- SwitchElementsCollection.cs
- wgx_commands.cs
- _AutoWebProxyScriptWrapper.cs
- CheckStoreFileValidityRequest.cs
- FilterException.cs
- oledbmetadatacolumnnames.cs
- SafeTimerHandle.cs
- ColumnTypeConverter.cs
- SynthesizerStateChangedEventArgs.cs
- SystemWebSectionGroup.cs
- ObjectQueryState.cs
- ConfigXmlComment.cs
- StyleHelper.cs
- CodeAccessSecurityEngine.cs
- WebPartZone.cs
- UTF8Encoding.cs
- RangeValuePattern.cs
- GridViewRow.cs
- XmlHelper.cs
- COM2ComponentEditor.cs
- OptimalTextSource.cs
- GridEntry.cs
- PasswordDeriveBytes.cs
- ResolvedKeyFrameEntry.cs
- WindowsFormsHostAutomationPeer.cs
- WpfXamlType.cs
- HtmlPageAdapter.cs
- MsmqIntegrationMessageProperty.cs
- ServiceHost.cs
- MemoryMappedViewStream.cs
- Debug.cs
- Parallel.cs
- EncoderParameters.cs
- ConstraintEnumerator.cs
- _NestedMultipleAsyncResult.cs
- CultureMapper.cs
- DataGridViewRowsAddedEventArgs.cs
- DropDownButton.cs
- SerializationEventsCache.cs
- BooleanSwitch.cs
- RawTextInputReport.cs
- DataGridCaption.cs
- AppDomainUnloadedException.cs
- XmlNodeChangedEventArgs.cs
- BitmapEffectState.cs
- WindowsStatic.cs
- CollectionExtensions.cs
- ChameleonKey.cs
- EventProviderWriter.cs
- SessionStateUtil.cs
- WebBrowserDocumentCompletedEventHandler.cs