    

 ## On this page

  

 

 # ValueHolder

 Last update: 30.07.2026 

public class [ValueHolder](index.md)&lt;[T](index.md)&gt;

Object that allows pass-by-reference. Pass this object and have the called method set the [value](value.md) member.

#### Author

Dave

## Constructors

[ValueHolder](-value-holder.md)constructor()  
Default constructor; sets [value](value.md) to null.  
constructor(value: [T](index.md))  
Constructor with an initial value.## Properties

NameSummary[value](value.md)open var [value](value.md): [T](index.md)  
The value being held.