We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b29d770 commit 7555ed6Copy full SHA for 7555ed6
Runtime/Variables/ValueReference.cs
@@ -74,6 +74,26 @@ public ValueReference(TVariable variable)
74
this.variable = variable;
75
}
76
77
+ /// <summary>
78
+ /// Switches to use a fixed value and assigns the provided value.
79
+ /// </summary>
80
+ /// <param name="value">The fixed value to use.</param>
81
+ public void SetFixedValue(TValue value)
82
+ {
83
+ useVariable = false;
84
+ fixedValue = value;
85
+ }
86
+
87
88
+ /// Switches to use a variable reference and assigns the provided variable.
89
90
+ /// <param name="variable">The variable reference to use.</param>
91
+ public void SetVariable(TVariable variable)
92
93
+ useVariable = true;
94
+ this.variable = variable;
95
96
97
98
99
0 commit comments