Show / Hide Table of Contents

Class VariableDefinition

Model type representing a single TAL variable definition.

Inheritance
System.Object
VariableDefinition
Implements
System.IEquatable<VariableDefinition>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: ZptSharp.Tal
Assembly: ZptSharp.dll
Syntax
public sealed class VariableDefinition : IEquatable<VariableDefinition>

Properties

| Improve this Doc View Source

Expression

Gets or sets the value expression.

Declaration
public string Expression { get; set; }
Property Value
Type Description
System.String

The expression.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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

true if is global; otherwise, false.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

Equals(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

true if the specified System.Object is equal to the current VariableDefinition; otherwise, false.

Overrides
System.Object.Equals(System.Object)
| Improve this Doc View Source

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

true if the specified VariableDefinition is equal to the current VariableDefinition; otherwise, false.

| Improve this Doc View Source

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
System.Object.GetHashCode()
| Improve this Doc View Source

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.

Overrides
System.Object.ToString()

Implements

System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX