Class LocalScope
Assembly: RCaron.dll
View Source
Declarationcsharp
public class LocalScope
Declarationcsharp
public class LocalScope
Derived:
RCaron.ClassStaticFunctionScope
Properties
Variables
View Source
Declarationcsharp
public Dictionary<string, object?>? Variables { get; }
Declarationcsharp
public Dictionary<string, object?>? Variables { get; }
Methods
GetNewVariablesDictionary()
View Source
Declarationcsharp
public static Dictionary<string, object?> GetNewVariablesDictionary()
Declarationcsharp
public static Dictionary<string, object?> GetNewVariablesDictionary()
Returns
System.Collections.Generic.Dictionary<System.String,System.Object>
GetVariables()
View Source
Declarationcsharp
public Dictionary<string, object?> GetVariables()
Declarationcsharp
public Dictionary<string, object?> GetVariables()
Returns
System.Collections.Generic.Dictionary<System.String,System.Object>
GetVariable(string)
View Source
Declarationcsharp
public virtual object? GetVariable(string name)
Declarationcsharp
public virtual object? GetVariable(string name)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.String | name |
TryGetVariable(string, out object?)
View Source
Declarationcsharp
public virtual bool TryGetVariable(string name, out object? value)
Declarationcsharp
public virtual bool TryGetVariable(string name, out object? value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | name |
System.Object | value |
SetVariable(string, in object?)
View Source
Declarationcsharp
public virtual void SetVariable(string name, in object? value)
Declarationcsharp
public virtual void SetVariable(string name, in object? value)
Parameters
Type | Name |
---|---|
System.String | name |
System.Object | value |
GetVariableRef(string)
View Source
Declarationcsharp
public virtual ref object? GetVariableRef(string name)
Declarationcsharp
public virtual ref object? GetVariableRef(string name)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.String | name |
VariableExists(string)
View Source
Declarationcsharp
public virtual bool VariableExists(string name)
Declarationcsharp
public virtual bool VariableExists(string name)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | name |
Extension Methods
- System.Object.RCaron.ListEx.Expect``1
- RCaron.ListEx.NotNull(object?)