Class VariableDefinition
Model type representing a single TAL variable definition.
Inheritance
Implements
Inherited Members
Namespace: ZptSharp.Tal
Assembly: ZptSharp.dll
Syntax
public sealed class VariableDefinition : IEquatable<VariableDefinition>
Properties
| Improve this Doc View SourceExpression
Gets or sets the value expression.
Declaration
public string Expression { get; set; }
Property Value
Type | Description |
---|---|
System.String | The expression. |
GlobalScope
Gets the string which represents a globally-scoped definition.
Declaration
public static string GlobalScope { get; }
Property Value
Type | Description |
---|---|
System.String | The global scope name. |
IsGlobal
Gets a value indicating whether this VariableDefinition is a global definition. If false then it is a local definition.
Declaration
public bool IsGlobal { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
LocalScope
Gets the string which represents a locally-scoped definition.
Declaration
public static string LocalScope { get; }
Property Value
Type | Description |
---|---|
System.String | The global scope name. |
Scope
Gets or sets the scope of definition. Expected to be one of local
or global
or null.
Any value apart from global
will be interpreted as local.
Declaration
public string Scope { get; set; }
Property Value
Type | Description |
---|---|
System.String | The variable scope. |
VariableName
Gets or sets the name of the variable.
Declaration
public string VariableName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the variable. |
Methods
| Improve this Doc View SourceEquals(Object)
Determines whether the specified System.Object is equal to the current VariableDefinition.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current VariableDefinition. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Equals(VariableDefinition)
Determines whether the specified VariableDefinition is equal to the current VariableDefinition.
Declaration
public bool Equals(VariableDefinition other)
Parameters
Type | Name | Description |
---|---|---|
VariableDefinition | other | The VariableDefinition to compare with the current VariableDefinition. |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetHashCode()
Returns a static value as the hash code for a VariableDefinition. Variable definitions are NOT suitable for use as keys to a hash table.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table. |
Overrides
ToString()
Returns a System.String that represents the current VariableDefinition.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current VariableDefinition. |