You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Destruction logic, eliminating all data stored in the object.
70
+
/// Since handles to this object are automatically stored and maintained, it is impossible to otherwise guarantee releasing the object's data for the GC.
71
+
/// </summary>
72
+
publicvoidDispose()
73
+
{
74
+
Values=newDictionary<Guid,object>();
75
+
DefaultValue=null;
76
+
RunspaceHost._RunspaceBoundValues.Remove(this);
77
+
}
78
+
79
+
/// <summary>
80
+
/// Create an empty runspace bound value object
81
+
/// </summary>
82
+
publicRunspaceBoundValue()
83
+
:this(null,true)
84
+
{
85
+
86
+
}
87
+
88
+
/// <summary>
89
+
/// Create a runspace bound value object with its initial value
90
+
/// </summary>
91
+
/// <param name="Value">The object to set as the initial value</param>
92
+
publicRunspaceBoundValue(objectValue)
93
+
:this(Value,true)
94
+
{
95
+
96
+
}
97
+
98
+
/// <summary>
99
+
/// Create a runspace bound value object with its initial value
100
+
/// </summary>
101
+
/// <param name="Value">The object to set as the initial value</param>
102
+
/// <param name="OfferDefaultValue">Whether the initial / default value should be offered when accessed from runspaces that do not have a runspace-local value</param>
0 commit comments