Class DictItem
A key/value pair in a dictionary
Inheritance
System.Object
DictItem
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class DictItem : IEquatable<DictItem>
Constructors
DictItem(String, Expression, Expression)
Initializes a new instance of the DictItem class.
Declaration
public DictItem(string type = null, Expression key = null, Expression val = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | type | Type of AST node. |
Expression | key | key. |
Expression | val | val. |
Properties
Key
Gets or Sets Key
Declaration
public Expression Key { 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 |
Val
Gets or Sets Val
Declaration
public Expression Val { get; set; }
Property Value
Type | Description |
---|---|
Expression |
Methods
Equals(DictItem)
Returns true if DictItem instances are equal
Declaration
public bool Equals(DictItem input)
Parameters
Type | Name | Description |
---|---|---|
DictItem | input | Instance of DictItem 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 |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |