Redigeeri

Jagamisviis:


StrongBox<T> Class

Definition

Holds a reference to a value.

generic <typename T>
public ref class StrongBox : System::Runtime::CompilerServices::IStrongBox
public class StrongBox<T> : System.Runtime.CompilerServices.IStrongBox
type StrongBox<'T> = class
    interface IStrongBox
Public Class StrongBox(Of T)
Implements IStrongBox

Type Parameters

T

The type of the value that the StrongBox<T> references.

Inheritance
StrongBox<T>
Implements

Remarks

This type is provided for use by the dynamic methods that the internal expression compiler component of the expression tree API generates.

Constructors

StrongBox<T>()

Initializes a new StrongBox which can receive a value when used in a reference call.

StrongBox<T>(T)

Initializes a new instance of the StrongBox<T> class by using the supplied value.

Fields

Value

Represents the value that the StrongBox<T> references.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IStrongBox.Value

Gets or sets the value that the StrongBox<T> references.

Applies to