Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / Emit / TypeToken.cs / 1305376 / TypeToken.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: TypeToken ** **[....] ** ** ** Purpose: Represents a Class to the ILGenerator class. ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Threading; using System.Security.Permissions; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public struct TypeToken { public static readonly TypeToken Empty = new TypeToken(); internal int m_class; #if false public TypeToken() { m_class=0; } #endif internal TypeToken(int str) { m_class=str; } public int Token { get { return m_class; } } public override int GetHashCode() { return m_class; } public override bool Equals(Object obj) { if (obj is TypeToken) return Equals((TypeToken)obj); else return false; } public bool Equals(TypeToken obj) { return obj.m_class == m_class; } public static bool operator ==(TypeToken a, TypeToken b) { return a.Equals(b); } public static bool operator !=(TypeToken a, TypeToken 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
- OleAutBinder.cs
- remotingproxy.cs
- DBParameter.cs
- TransactionManager.cs
- XamlBuildTaskServices.cs
- SchemaNotation.cs
- GZipStream.cs
- DataGridViewLayoutData.cs
- Base64Encoder.cs
- WindowsTokenRoleProvider.cs
- GrowingArray.cs
- _OverlappedAsyncResult.cs
- FilteredSchemaElementLookUpTable.cs
- SoapIncludeAttribute.cs
- Help.cs
- ComponentDispatcherThread.cs
- EntityDataSourceContainerNameConverter.cs
- ConfigurationException.cs
- WebZone.cs
- Bold.cs
- NativeActivityContext.cs
- CodeVariableDeclarationStatement.cs
- VarRemapper.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- CreateUserErrorEventArgs.cs
- CompositeClientFormatter.cs
- NoClickablePointException.cs
- ConfigXmlWhitespace.cs
- NavigationProgressEventArgs.cs
- LinqDataSourceView.cs
- FormsAuthenticationUserCollection.cs
- HScrollBar.cs
- HtmlEncodedRawTextWriter.cs
- AssemblyNameProxy.cs
- ByteRangeDownloader.cs
- ConfigurationStrings.cs
- WebBrowserSiteBase.cs
- ToolTipService.cs
- AtlasWeb.Designer.cs
- ClickablePoint.cs
- Ray3DHitTestResult.cs
- SmtpDateTime.cs
- ResourcePermissionBaseEntry.cs
- Constants.cs
- ProxyHwnd.cs
- PaperSize.cs
- DataKey.cs
- OdbcException.cs
- BuildManagerHost.cs
- TypeInfo.cs
- CodeCommentStatement.cs
- DeclarativeCatalogPart.cs
- MachineKey.cs
- VariableQuery.cs
- CaretElement.cs
- WmlListAdapter.cs
- HttpWebRequest.cs
- MailFileEditor.cs
- ElementProxy.cs
- TypePropertyEditor.cs
- WindowsEditBox.cs
- XamlUtilities.cs
- XmlWriterTraceListener.cs
- DbBuffer.cs
- AnnotationDocumentPaginator.cs
- DataViewSetting.cs
- XmlNavigatorFilter.cs
- LogEntryUtils.cs
- SqlDataSourceParameterParser.cs
- ScriptModule.cs
- BinaryUtilClasses.cs
- EnumerableCollectionView.cs
- RectAnimationBase.cs
- WmfPlaceableFileHeader.cs
- RowUpdatedEventArgs.cs
- DocumentGrid.cs
- SiteMapDataSourceView.cs
- DataSourceSelectArguments.cs
- AdCreatedEventArgs.cs
- FixedNode.cs
- BlockUIContainer.cs
- NonSerializedAttribute.cs
- OutputWindow.cs
- TreeViewEvent.cs
- DataGridTextBoxColumn.cs
- GenerateScriptTypeAttribute.cs
- QueryStringParameter.cs
- BitmapDownload.cs
- WindowsEditBox.cs
- cache.cs
- ErrorFormatter.cs
- ContourSegment.cs
- CurrentTimeZone.cs
- IDQuery.cs
- SoapHeaderException.cs
- GenericAuthenticationEventArgs.cs
- ReferenceEqualityComparer.cs
- HashMembershipCondition.cs
- MultiBindingExpression.cs
- MenuRendererClassic.cs