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
- TargetParameterCountException.cs
- Menu.cs
- ApplicationDirectoryMembershipCondition.cs
- WebResourceAttribute.cs
- OleDbRowUpdatingEvent.cs
- HtmlTable.cs
- NameValueFileSectionHandler.cs
- CellParagraph.cs
- latinshape.cs
- PropertyChangingEventArgs.cs
- WorkflowApplicationCompletedException.cs
- EntityDesignerBuildProvider.cs
- ToolStripDropDownItem.cs
- PeerApplication.cs
- SiteMapSection.cs
- IPGlobalProperties.cs
- ParserHooks.cs
- TextEditorDragDrop.cs
- IncrementalReadDecoders.cs
- ToolStripContentPanelRenderEventArgs.cs
- xml.cs
- ScrollChrome.cs
- CapabilitiesPattern.cs
- Ops.cs
- ContainerControlDesigner.cs
- Rotation3D.cs
- SapiRecognizer.cs
- GlobalDataBindingHandler.cs
- TimeSpanValidatorAttribute.cs
- ButtonBase.cs
- DependencyPropertyKind.cs
- ExpressionPrefixAttribute.cs
- CommandDevice.cs
- DataServiceProviderMethods.cs
- LogManagementAsyncResult.cs
- CompModSwitches.cs
- SoapSchemaExporter.cs
- DynamicDataRoute.cs
- ToolStripItemCollection.cs
- DrawingContext.cs
- BaseParagraph.cs
- SerializerDescriptor.cs
- ComboBoxDesigner.cs
- ZipIOFileItemStream.cs
- CornerRadiusConverter.cs
- ReferenceEqualityComparer.cs
- CustomValidator.cs
- QilFunction.cs
- BuilderPropertyEntry.cs
- CultureTable.cs
- RouteValueDictionary.cs
- WebScriptServiceHost.cs
- TabletDeviceInfo.cs
- TdsParserStaticMethods.cs
- RMEnrollmentPage1.cs
- DoWorkEventArgs.cs
- TokenBasedSetEnumerator.cs
- SchemaTypeEmitter.cs
- RectangleHotSpot.cs
- StdRegProviderWrapper.cs
- TextEditorSpelling.cs
- ParameterModifier.cs
- Base64Stream.cs
- LabelLiteral.cs
- OpCodes.cs
- Vector3DAnimationUsingKeyFrames.cs
- NullRuntimeConfig.cs
- BufferModesCollection.cs
- Transform3DGroup.cs
- LeftCellWrapper.cs
- WmlImageAdapter.cs
- MethodAccessException.cs
- CodeAssignStatement.cs
- TemplateBindingExpression.cs
- WeakHashtable.cs
- ConfigsHelper.cs
- CngAlgorithm.cs
- ParserExtension.cs
- FormatterConverter.cs
- TraceLevelStore.cs
- UdpDiscoveryEndpointElement.cs
- CLRBindingWorker.cs
- SmtpReplyReader.cs
- JournalEntry.cs
- SafeCryptHandles.cs
- WebServiceMethodData.cs
- DataPager.cs
- IRCollection.cs
- DataSourceXmlSerializationAttribute.cs
- COM2Properties.cs
- BeginEvent.cs
- RevocationPoint.cs
- XmlQueryRuntime.cs
- NativeMethodsCLR.cs
- SafeSystemMetrics.cs
- SocketStream.cs
- CustomActivityDesigner.cs
- Pair.cs
- SByteConverter.cs
- ComPlusTypeValidator.cs