System.Reflection.Pointer Class

Assembly: Mscorlib.dll
Namespace: System.Reflection
Summary
Provides a wrapper class for pointers.
This class is not CLS Compliant

C# Syntax:
[CLSCompliant(false)]
public sealed class Pointer : ISerializable
See also:
System.Reflection Namespace

System.Reflection.Pointer Member List:

Public Methods
Box Boxes the supplied unmanaged memory pointer and the type associated with that pointer into a managed Pointer wrapper object. The value and the type are saved so they can be accessed from the native code during an invocation.
Equals
(inherited from System.Object)
See base class member description: System.Object.Equals

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

Derived from System.Object, the primary base class for all objects.
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.Object)
See base class member description: System.Object.ToString

Derived from System.Object, the primary base class for all objects.
Unbox Returns the stored pointer.
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.Pointer Member Details

Method: Box(
   void* ptr,
   Type type
)
Summary
Boxes the supplied unmanaged memory pointer and the type associated with that pointer into a managed Pointer wrapper object. The value and the type are saved so they can be accessed from the native code during an invocation.
This class is not CLS Compliant

C# Syntax:
public static object Box(
   void* ptr,
   Type type
);
Parameters:

ptr

The supplied unmanaged memory pointer.

type

The type associated with the ptr parameter.

Return Value:
A pointer object.
Exceptions
Exception Type Condition
ArgumentException type is not a pointer.
ArgumentNullException type is null.

Return to top


Method: Equals(
   object obj
)
Inherited
See base class member description: System.Object.Equals
This class is not CLS Compliant

C# Syntax:
public virtual bool Equals(
   object obj
);

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

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
This class is not CLS Compliant

C# Syntax:
~Pointer();

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

Return to top


Method: GetHashCode()
Inherited
See base class member description: System.Object.GetHashCode
This class is not CLS Compliant

C# Syntax:
public virtual int GetHashCode();

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

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
This class is not CLS Compliant

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
This class is not CLS Compliant

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.Object.ToString
This class is not CLS Compliant

C# Syntax:
public virtual string ToString();

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

Return to top


Method: Unbox(
   object ptr
)
Summary
Returns the stored pointer.
This class is not CLS Compliant

C# Syntax:
public static void* Unbox(
   object ptr
);
Parameters:

ptr

The stored pointer.

Return Value:
This method returns void.
Exceptions
Exception Type Condition
ArgumentException ptr is not a pointer.

Return to top


Top of page

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