跳到主要内容
版本:Next

Class LocalScope

Assembly: RCaron.dll
View Source
Declaration
csharp
public class LocalScope
Declaration
csharp
public class LocalScope

Derived:
RCaron.ClassStaticFunctionScope

Properties

Variables

View Source
Declaration
csharp
public Dictionary<string, object?>? Variables { get; }
Declaration
csharp
public Dictionary<string, object?>? Variables { get; }

Methods

GetNewVariablesDictionary()

View Source
Declaration
csharp
public static Dictionary<string, object?> GetNewVariablesDictionary()
Declaration
csharp
public static Dictionary<string, object?> GetNewVariablesDictionary()
Returns

System.Collections.Generic.Dictionary<System.String,System.Object>

GetVariables()

View Source
Declaration
csharp
public Dictionary<string, object?> GetVariables()
Declaration
csharp
public Dictionary<string, object?> GetVariables()
Returns

System.Collections.Generic.Dictionary<System.String,System.Object>

GetVariable(string)

View Source
Declaration
csharp
public virtual object? GetVariable(string name)
Declaration
csharp
public virtual object? GetVariable(string name)
Returns

System.Object

Parameters
TypeName
System.Stringname

TryGetVariable(string, out object?)

View Source
Declaration
csharp
public virtual bool TryGetVariable(string name, out object? value)
Declaration
csharp
public virtual bool TryGetVariable(string name, out object? value)
Returns

System.Boolean

Parameters
TypeName
System.Stringname
System.Objectvalue

SetVariable(string, in object?)

View Source
Declaration
csharp
public virtual void SetVariable(string name, in object? value)
Declaration
csharp
public virtual void SetVariable(string name, in object? value)
Parameters
TypeName
System.Stringname
System.Objectvalue

GetVariableRef(string)

View Source
Declaration
csharp
public virtual ref object? GetVariableRef(string name)
Declaration
csharp
public virtual ref object? GetVariableRef(string name)
Returns

System.Object

Parameters
TypeName
System.Stringname

VariableExists(string)

View Source
Declaration
csharp
public virtual bool VariableExists(string name)
Declaration
csharp
public virtual bool VariableExists(string name)
Returns

System.Boolean

Parameters
TypeName
System.Stringname

Extension Methods