Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Reflection / Emit / Label.cs / 1 / Label.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: Label ** ** ** ** Purpose: Represents a Label to the ILGenerator class. ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Security.Permissions; using System.Runtime.InteropServices; // The Label class is an opaque representation of a label used by the // ILGenerator class. The token is used to mark where labels occur in the IL // stream and then the necessary offsets are put back in the code when the ILGenerator // is passed to the MethodWriter. // Labels are created by using ILGenerator.CreateLabel and their position is set // by using ILGenerator.MarkLabel. [Serializable()] [ComVisible(true)] public struct Label { internal int m_label; //public Label() { // m_label=0; //} internal Label (int label) { m_label=label; } internal int GetLabelValue() { return m_label; } public override int GetHashCode() { return m_label; } public override bool Equals(Object obj) { if (obj is Label) return Equals((Label)obj); else return false; } public bool Equals(Label obj) { return obj.m_label == m_label; } public static bool operator ==(Label a, Label b) { return a.Equals(b); } public static bool operator !=(Label a, Label b) { return !(a == b); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: Label ** ** ** ** Purpose: Represents a Label to the ILGenerator class. ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Security.Permissions; using System.Runtime.InteropServices; // The Label class is an opaque representation of a label used by the // ILGenerator class. The token is used to mark where labels occur in the IL // stream and then the necessary offsets are put back in the code when the ILGenerator // is passed to the MethodWriter. // Labels are created by using ILGenerator.CreateLabel and their position is set // by using ILGenerator.MarkLabel. [Serializable()] [ComVisible(true)] public struct Label { internal int m_label; //public Label() { // m_label=0; //} internal Label (int label) { m_label=label; } internal int GetLabelValue() { return m_label; } public override int GetHashCode() { return m_label; } public override bool Equals(Object obj) { if (obj is Label) return Equals((Label)obj); else return false; } public bool Equals(Label obj) { return obj.m_label == m_label; } public static bool operator ==(Label a, Label b) { return a.Equals(b); } public static bool operator !=(Label a, Label 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
- MediaTimeline.cs
- HMACRIPEMD160.cs
- X509ChainPolicy.cs
- ResourceProviderFactory.cs
- activationcontext.cs
- DirtyTextRange.cs
- WebPartConnectionsDisconnectVerb.cs
- TextEditorTables.cs
- Select.cs
- PlainXmlSerializer.cs
- NegotiateStream.cs
- ScalarOps.cs
- DataGridViewImageColumn.cs
- GetLedgerEntryForRecipientRequest.cs
- SafeMILHandle.cs
- Stroke.cs
- ExpressionCopier.cs
- _NtlmClient.cs
- diagnosticsswitches.cs
- TransactionManager.cs
- ArglessEventHandlerProxy.cs
- SizeChangedEventArgs.cs
- StateBag.cs
- UIElementParagraph.cs
- TargetException.cs
- SystemSounds.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- BindableTemplateBuilder.cs
- AppDomainManager.cs
- SafeSecurityHelper.cs
- MulticastNotSupportedException.cs
- DataGridHeaderBorder.cs
- EventProvider.cs
- WaitHandleCannotBeOpenedException.cs
- LoadMessageLogger.cs
- GetFileNameResult.cs
- SqlBinder.cs
- FontSourceCollection.cs
- OleServicesContext.cs
- SmiSettersStream.cs
- TypeForwardedToAttribute.cs
- LongValidator.cs
- HtmlTableRow.cs
- WindowsStartMenu.cs
- BooleanStorage.cs
- _HTTPDateParse.cs
- ImageListStreamer.cs
- DataGridCell.cs
- MenuAutomationPeer.cs
- ObjectTypeMapping.cs
- RewritingProcessor.cs
- JsonXmlDataContract.cs
- SqlResolver.cs
- ZipIOLocalFileBlock.cs
- ViewKeyConstraint.cs
- X509Extension.cs
- Binding.cs
- wgx_commands.cs
- PreProcessInputEventArgs.cs
- CFStream.cs
- PropertyChangedEventArgs.cs
- RegionIterator.cs
- DataBoundLiteralControl.cs
- MethodBuilderInstantiation.cs
- TreeSet.cs
- EventLog.cs
- CaseStatementProjectedSlot.cs
- COSERVERINFO.cs
- TextParagraphCache.cs
- SingleAnimation.cs
- ZipIOFileItemStream.cs
- SizeValueSerializer.cs
- CaseInsensitiveComparer.cs
- SqlCacheDependencyDatabase.cs
- ExtentCqlBlock.cs
- Utils.cs
- CompilationRelaxations.cs
- entitydatasourceentitysetnameconverter.cs
- ValidationError.cs
- OpenFileDialog.cs
- HtmlControlAdapter.cs
- XmlSignificantWhitespace.cs
- TextRangeSerialization.cs
- _KerberosClient.cs
- HMACSHA256.cs
- MsmqOutputSessionChannel.cs
- StickyNoteContentControl.cs
- ZipIOExtraFieldElement.cs
- PublisherMembershipCondition.cs
- CompressionTracing.cs
- FilterQueryOptionExpression.cs
- ItemCollection.cs
- Panel.cs
- JumpItem.cs
- WebServiceEnumData.cs
- SqlNodeTypeOperators.cs
- HttpListenerPrefixCollection.cs
- SeverityFilter.cs
- AnimationTimeline.cs
- CompiledRegexRunner.cs