Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Diagnostics / SymbolStore / Token.cs / 1 / Token.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: SymbolToken ** ** Small value class used by the SymbolStore package for passing ** around metadata tokens. ** ===========================================================*/ namespace System.Diagnostics.SymbolStore { using System; using System.Runtime.InteropServices; [ComVisible(true)] public struct SymbolToken { internal int m_token; public SymbolToken(int val) {m_token=val;} public int GetToken() {return m_token;} public override int GetHashCode() {return m_token;} public override bool Equals(Object obj) { if (obj is SymbolToken) return Equals((SymbolToken)obj); else return false; } public bool Equals(SymbolToken obj) { return obj.m_token == m_token; } public static bool operator ==(SymbolToken a, SymbolToken b) { return a.Equals(b); } public static bool operator !=(SymbolToken a, SymbolToken b) { return !(a == b); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: SymbolToken ** ** Small value class used by the SymbolStore package for passing ** around metadata tokens. ** ===========================================================*/ namespace System.Diagnostics.SymbolStore { using System; using System.Runtime.InteropServices; [ComVisible(true)] public struct SymbolToken { internal int m_token; public SymbolToken(int val) {m_token=val;} public int GetToken() {return m_token;} public override int GetHashCode() {return m_token;} public override bool Equals(Object obj) { if (obj is SymbolToken) return Equals((SymbolToken)obj); else return false; } public bool Equals(SymbolToken obj) { return obj.m_token == m_token; } public static bool operator ==(SymbolToken a, SymbolToken b) { return a.Equals(b); } public static bool operator !=(SymbolToken a, SymbolToken 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
- DefaultTypeArgumentAttribute.cs
- TimeSpanValidator.cs
- ObjectStateManager.cs
- CellParaClient.cs
- PartialToken.cs
- UInt16Converter.cs
- SocketException.cs
- Int32Collection.cs
- DetailsView.cs
- DefinitionBase.cs
- ConfigViewGenerator.cs
- PopupEventArgs.cs
- RenderingBiasValidation.cs
- DataServiceQueryProvider.cs
- SafeFileMappingHandle.cs
- MimeBasePart.cs
- Range.cs
- PropertyDescriptors.cs
- ImageSourceValueSerializer.cs
- AbandonedMutexException.cs
- RelatedView.cs
- WebPartCollection.cs
- Control.cs
- Events.cs
- CallbackDebugElement.cs
- HiddenFieldPageStatePersister.cs
- EncryptedPackage.cs
- StringInfo.cs
- SubclassTypeValidator.cs
- EndpointPerformanceCounters.cs
- PropertyChangeTracker.cs
- ProfilePropertySettings.cs
- SiteMapNodeItem.cs
- BamlStream.cs
- CodeAttributeDeclarationCollection.cs
- XmlSchemaAnnotated.cs
- DataPagerFieldCommandEventArgs.cs
- ProfilePropertySettingsCollection.cs
- CompressEmulationStream.cs
- ToolStripDropDownClosingEventArgs.cs
- FormParameter.cs
- DataGridCheckBoxColumn.cs
- TraceEventCache.cs
- ProvidePropertyAttribute.cs
- TemplateBamlRecordReader.cs
- ConnectionManagementElementCollection.cs
- ClientSettingsSection.cs
- WmpBitmapDecoder.cs
- DesignerSerializerAttribute.cs
- OraclePermission.cs
- _LocalDataStore.cs
- UInt32Storage.cs
- AddDataControlFieldDialog.cs
- RoleGroup.cs
- PropertyGridEditorPart.cs
- ConfigurationPropertyAttribute.cs
- MailMessageEventArgs.cs
- XmlArrayAttribute.cs
- VisualTreeUtils.cs
- DataGridViewTopRowAccessibleObject.cs
- RulePatternOps.cs
- SspiSecurityTokenParameters.cs
- DataViewSettingCollection.cs
- LinkLabel.cs
- LicenseException.cs
- FixedSOMPageElement.cs
- Convert.cs
- _ListenerRequestStream.cs
- BindStream.cs
- MetadataArtifactLoaderResource.cs
- IndicCharClassifier.cs
- HtmlDocument.cs
- WizardStepBase.cs
- ContextStaticAttribute.cs
- ImageIndexEditor.cs
- SafeCryptHandles.cs
- ProgressBarBrushConverter.cs
- EntityRecordInfo.cs
- IndentTextWriter.cs
- ColumnHeaderConverter.cs
- DocumentPaginator.cs
- CapabilitiesState.cs
- SplineQuaternionKeyFrame.cs
- IndexedEnumerable.cs
- ExpressionNode.cs
- CompilationRelaxations.cs
- AttachedAnnotationChangedEventArgs.cs
- _AutoWebProxyScriptHelper.cs
- XsltLoader.cs
- OletxVolatileEnlistment.cs
- XmlQuerySequence.cs
- IPipelineRuntime.cs
- PartBasedPackageProperties.cs
- CellQuery.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- ListViewGroupItemCollection.cs
- BehaviorService.cs
- InputProcessorProfilesLoader.cs
- MdiWindowListStrip.cs
- Reference.cs