Class VariableAssignment
Represents the declaration of a variable
Implements
IEquatable<VariableAssignment>
Inherited Members
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class VariableAssignment : Statement, IEquatable<VariableAssignment>
Constructors
VariableAssignment(String, Identifier, Expression)
Initializes a new instance of the VariableAssignment class.
Declaration
public VariableAssignment(string type = null, Identifier id = null, Expression init = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | type | Type of AST node. |
Identifier | id | id. |
Expression | init | init. |
Properties
Id
Gets or Sets Id
Declaration
public Identifier Id { get; set; }
Property Value
Type | Description |
---|---|
Identifier |
Init
Gets or Sets Init
Declaration
public Expression Init { get; set; }
Property Value
Type | Description |
---|---|
Expression |
Type
Type of AST node
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String | Type of AST node |
Methods
Equals(VariableAssignment)
Returns true if VariableAssignment instances are equal
Declaration
public bool Equals(VariableAssignment input)
Parameters
Type | Name | Description |
---|---|---|
VariableAssignment | input | Instance of VariableAssignment to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public override string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
Overrides
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Implements
IEquatable<>