Click or drag to resize
ptrT Class
Represents a pointer to a value of type T.
Inheritance Hierarchy
SystemObject
  Math.Gmp.NativeptrT

Namespace:  Math.Gmp.Native
Assembly:  Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class ptr<T>
where T : struct, new()

Type Parameters

T
A value type.

The ptrT type exposes the following members.

Constructors
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldValue
The value that is "pointed to".
Top
Remarks

Mimics the C address-of (&) construct to pass the address of a value type variable to a function of the GMP library.

Note that this is only for value types. Strings and arrays have their own "pointer" types defined with names ending in _ptr.

See Also