Show / Hide Table of Contents

Class ConstantDefinition

A constant definition.

Inheritance
System.Object
ConstantDefinition
Implements
IConstantDefinition
System.IEquatable<ConstantDefinition>
Namespace: MESL.SqlRace.Domain.Functions
Assembly: MESL.SqlRace.Domain.dll
Syntax
public sealed class ConstantDefinition : Object, IConstantDefinition, IEquatable<ConstantDefinition>

Constructors

ConstantDefinition(String, Double, ConstantType)

Initializes a new instance of the ConstantDefinition class.

Declaration
public ConstantDefinition(string name, double value, ConstantType type)
Parameters
Type Name Description
System.String name

The name.

System.Double value

The value.

ConstantType type

The type.

ConstantDefinition(String, String, ConstantType, ConstantValueType)

Initializes a new instance of the ConstantDefinition class.

Declaration
public ConstantDefinition(string name, string value, ConstantType type, ConstantValueType valueType)
Parameters
Type Name Description
System.String name

The name.

System.String value

The value.

ConstantType type

The type.

ConstantValueType valueType

Type of the value.

Properties

Name

Name of the constant

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

Type

Type of the constant

Declaration
public ConstantType Type { get; }
Property Value
Type Description
ConstantType

Value

Value of the constant

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

ValueType

Type of the constant value

Declaration
public ConstantValueType ValueType { get; }
Property Value
Type Description
ConstantValueType

Methods

Equals(ConstantDefinition)

Indicates whether the current object is equal to another object of the same type.

Declaration
public bool Equals(ConstantDefinition other)
Parameters
Type Name Description
ConstantDefinition other

An object to compare with this object.

Returns
Type Description
System.Boolean

true if the current object is equal to the other parameter; otherwise, false.

Equals(Object)

Determines whether the specified System.Object, is equal to this instance.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The System.Object to compare with this instance.

Returns
Type Description
System.Boolean

true if the specified System.Object is equal to this instance; otherwise, false.

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

ToString()

Returns a System.String that represents this instance.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents this instance.

Implements

IConstantDefinition
System.IEquatable<>
Back to top Generated by DocFX