System.Reflection.Emit.PropertyToken Structure

Assembly: Mscorlib.dll
Namespace: System.Reflection.Emit
Summary
The PropertyToken class is an opaque representation of the Token returned by the metadata to represent a property.
C# Syntax:
[Serializable]
public struct PropertyToken
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.PropertyToken Member List:

Public Fields
Empty The default PropertyToken with PropertyToken.Token value 0.
Public Properties
Token Read-only

Retrieves the metadata token for this property.
Public Methods
Equals Overridden:
Checks if the given object is an instance of PropertyToken and is equal to this instance.
GetHashCode Overridden:
Generates the hash code for this property.
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.PropertyToken Member Details

Field: Empty
Summary
The default PropertyToken with PropertyToken.Token value 0.
C# Syntax:
public static readonly PropertyToken Empty;

Return to top


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

Return to top


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

obj

The object to this object.

Return Value:
true if obj is an instance of PropertyToken and equals the current instance; otherwise, false.

Return to top


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

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

Return to top


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

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.