Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Reflection / Emit / MethodToken.cs / 1 / MethodToken.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: MethodToken ** ** ** Purpose: Represents a Method to the ILGenerator class. ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Security.Permissions; [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public struct MethodToken { public static readonly MethodToken Empty = new MethodToken(); internal int m_method; internal MethodToken(int str) { m_method=str; } public int Token { get { return m_method; } } public override int GetHashCode() { return m_method; } public override bool Equals(Object obj) { if (obj is MethodToken) return Equals((MethodToken)obj); else return false; } public bool Equals(MethodToken obj) { return obj.m_method == m_method; } public static bool operator ==(MethodToken a, MethodToken b) { return a.Equals(b); } public static bool operator !=(MethodToken a, MethodToken b) { return !(a == b); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: MethodToken ** ** ** Purpose: Represents a Method to the ILGenerator class. ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Security.Permissions; [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public struct MethodToken { public static readonly MethodToken Empty = new MethodToken(); internal int m_method; internal MethodToken(int str) { m_method=str; } public int Token { get { return m_method; } } public override int GetHashCode() { return m_method; } public override bool Equals(Object obj) { if (obj is MethodToken) return Equals((MethodToken)obj); else return false; } public bool Equals(MethodToken obj) { return obj.m_method == m_method; } public static bool operator ==(MethodToken a, MethodToken b) { return a.Equals(b); } public static bool operator !=(MethodToken a, MethodToken b) { return !(a == b); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaSearchPattern.cs
- SafeSecurityHelper.cs
- SrgsOneOf.cs
- XmlCollation.cs
- MessageFilterTable.cs
- InputScopeManager.cs
- KeyValuePair.cs
- BindingListCollectionView.cs
- SoapServerProtocol.cs
- XmlSchemaSimpleTypeRestriction.cs
- PromptBuilder.cs
- PolicyStatement.cs
- Icon.cs
- KeyToListMap.cs
- HttpModule.cs
- EdgeModeValidation.cs
- SQLRoleProvider.cs
- LicenseManager.cs
- SectionVisual.cs
- ServicePoint.cs
- ConfigurationElementProperty.cs
- LeaseManager.cs
- BidirectionalDictionary.cs
- ApplicationServiceManager.cs
- FamilyMap.cs
- ScrollItemPattern.cs
- NativeMethods.cs
- Object.cs
- TimestampInformation.cs
- XmlDataSource.cs
- DataListItemCollection.cs
- ReturnEventArgs.cs
- ActivitiesCollection.cs
- WhiteSpaceTrimStringConverter.cs
- RSACryptoServiceProvider.cs
- LookupBindingPropertiesAttribute.cs
- TransportContext.cs
- InputQueue.cs
- Configuration.cs
- OracleTransaction.cs
- EntryPointNotFoundException.cs
- KeyInterop.cs
- ContainsRowNumberChecker.cs
- SequenceDesigner.cs
- SingleConverter.cs
- InternalControlCollection.cs
- XmlSchemaExporter.cs
- PriorityBinding.cs
- AliasExpr.cs
- Util.cs
- XmlUtil.cs
- DbInsertCommandTree.cs
- Geometry.cs
- PersistChildrenAttribute.cs
- QilBinary.cs
- XmlToDatasetMap.cs
- CollectionType.cs
- XslAst.cs
- HttpPostedFileWrapper.cs
- MethodImplAttribute.cs
- Soap12ProtocolImporter.cs
- XPathBinder.cs
- SelectionListDesigner.cs
- _Rfc2616CacheValidators.cs
- PagerStyle.cs
- RedistVersionInfo.cs
- XamlParser.cs
- RemoteWebConfigurationHostStream.cs
- SynchronizationLockException.cs
- TreeNodeCollectionEditor.cs
- StringKeyFrameCollection.cs
- TransformPattern.cs
- EllipticalNodeOperations.cs
- CuspData.cs
- EntityConnection.cs
- Constant.cs
- IsolatedStorage.cs
- StateMachineHelpers.cs
- CompilationSection.cs
- AssemblyUtil.cs
- QueryableDataSourceHelper.cs
- TypedTableBaseExtensions.cs
- DataGridViewSelectedCellCollection.cs
- WebEncodingValidatorAttribute.cs
- StreamReader.cs
- SignatureDescription.cs
- FormsAuthenticationConfiguration.cs
- MarkedHighlightComponent.cs
- ListBox.cs
- DrawListViewColumnHeaderEventArgs.cs
- XmlCodeExporter.cs
- ManagementEventWatcher.cs
- InternalConfigEventArgs.cs
- ReverseInheritProperty.cs
- PenContext.cs
- Evidence.cs
- ChineseLunisolarCalendar.cs
- QueryableDataSourceEditData.cs
- StrongNameIdentityPermission.cs
- ListViewInsertionMark.cs