Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- Stack.cs
- VectorCollectionValueSerializer.cs
- DtdParser.cs
- PixelFormats.cs
- XmlWrappingReader.cs
- IxmlLineInfo.cs
- MenuRendererClassic.cs
- PartialCachingAttribute.cs
- PropertyGridDesigner.cs
- MonthCalendar.cs
- PreservationFileWriter.cs
- EntityDesignerUtils.cs
- FreezableOperations.cs
- ControlCollection.cs
- HtmlTextArea.cs
- NativeMethodsOther.cs
- ApplicationContext.cs
- Exception.cs
- EntityDataSourceDataSelectionPanel.cs
- StrokeNodeData.cs
- OdbcConnectionString.cs
- OciLobLocator.cs
- OrderedDictionary.cs
- SizeChangedEventArgs.cs
- Cell.cs
- Rule.cs
- CompilerGlobalScopeAttribute.cs
- CacheVirtualItemsEvent.cs
- InsufficientMemoryException.cs
- ScriptingProfileServiceSection.cs
- ExternalException.cs
- WindowExtensionMethods.cs
- CodeSnippetExpression.cs
- DataServiceEntityAttribute.cs
- MainMenu.cs
- SqlDataReader.cs
- XPathDescendantIterator.cs
- ListItem.cs
- Selection.cs
- FontInfo.cs
- login.cs
- ButtonBaseAutomationPeer.cs
- DateTimeOffset.cs
- SqlDataAdapter.cs
- LocalizedNameDescriptionPair.cs
- QueryTask.cs
- FormViewRow.cs
- IInstanceTable.cs
- DoubleLinkList.cs
- NetworkStream.cs
- ParentQuery.cs
- PrincipalPermission.cs
- SafeNativeMethods.cs
- ThumbAutomationPeer.cs
- SweepDirectionValidation.cs
- ICollection.cs
- Boolean.cs
- ManagementNamedValueCollection.cs
- TraceXPathNavigator.cs
- WebPartVerb.cs
- Vector.cs
- IfElseDesigner.xaml.cs
- Directory.cs
- DecimalAnimation.cs
- UIInitializationException.cs
- SqlBooleanizer.cs
- Contracts.cs
- XmlHierarchyData.cs
- BamlTreeMap.cs
- Pool.cs
- SynchronizedDispatch.cs
- TableAutomationPeer.cs
- GestureRecognizer.cs
- DataViewManager.cs
- XmlSchemaSet.cs
- DataGridViewImageColumn.cs
- UnmanagedBitmapWrapper.cs
- EventKeyword.cs
- EventItfInfo.cs
- NativeMethods.cs
- XmlQueryOutput.cs
- FactoryGenerator.cs
- OrderedEnumerableRowCollection.cs
- SourceInterpreter.cs
- prompt.cs
- CollaborationHelperFunctions.cs
- PlainXmlSerializer.cs
- ValueChangedEventManager.cs
- ColumnHeaderCollectionEditor.cs
- SystemColors.cs
- TextRenderer.cs
- XPathNodeHelper.cs
- ListViewDeletedEventArgs.cs
- OciEnlistContext.cs
- WebPartCancelEventArgs.cs
- Button.cs
- StylesEditorDialog.cs
- DefaultSection.cs
- TraceData.cs
- ProcessMonitor.cs