System.Reflection.Emit.StringToken Structure

Assembly: Mscorlib.dll
Namespace: System.Reflection.Emit
Summary
Represents a token that represents a string.
C# Syntax:
[Serializable]
public struct StringToken
Thread Safety
Reflection Emit is thread-safe when using assemblies that were created with the AppDomain.DefineDynamicAssembly method with the Boolean parameter isSynchronized set to true.
See also:
System.Reflection.Emit Namespace

System.Reflection.Emit.StringToken Member List:

Public Properties
Token Read-only

Retrieves the metadata token for this string.
Public Methods
Equals Overridden:
Checks if the given object is an instance of StringToken and is equal to this instance.
GetHashCode Overridden:
Returns the hash code for this string.
GetType
(inherited from System.Object)
See base class member description: System.Object.GetType

Derived from System.Object, the primary base class for all objects.
ToString
(inherited from System.ValueType)
See base class member description: System.ValueType.ToString


Returns the fully qualified type name of this instance.
Protected Methods
Finalize
(inherited from System.Object)
See base class member description: System.Object.Finalize

Derived from System.Object, the primary base class for all objects.
MemberwiseClone
(inherited from System.Object)
See base class member description: System.Object.MemberwiseClone

Derived from System.Object, the primary base class for all objects.

Hierarchy:


System.Reflection.Emit.StringToken Member Details

Property: Token (read-only)
Summary
Retrieves the metadata token for this string.
C# Syntax:
public int Token {get;}

Return to top


Overridden Method: Equals(
   object obj
)
Summary
Checks if the given object is an instance of StringToken and is equal to this instance.
C# Syntax:
public override bool Equals(
   object obj
);
Parameters:

obj

The object to compare with this StringToken.

Return Value:
true if obj is an instance of StringToken and is equal to this object; otherwise, false.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~StringToken();

For more information on members inherited from System.Object click on the link above.

Return to top


Overridden Method: GetHashCode()
Summary
Returns the hash code for this string.
C# Syntax:
public override int GetHashCode();
Return Value:
Returns the underlying string token.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: ToString()
Inherited
See base class member description: System.ValueType.ToString

Summary
Returns the fully qualified type name of this instance.
C# Syntax:
public override string ToString();
Return Value:
A String containing a fully qualified type name.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.