Skip to content
Miroiu Emanuel edited this page Aug 31, 2021 · 3 revisions

Precedence Struct

Namespace: StringMath

Assembly: StringMath

Inheritance: ObjectValueTypePrecedence

Implements: IEquatable<Precedence>

References: IMathContext, ICalculator

The operator precedence.

public readonly struct Precedence : IEquatable<Precedence>  

Fields

None

The lowest precedence value.

public static Precedence None;  

Field Value

Precedence

Addition

Addition precedence (0).

public static Precedence Addition;  

Field Value

Precedence

Multiplication

Multiplication precedence (1).

public static Precedence Multiplication;  

Field Value

Precedence

Power

Power precedence (2).

public static Precedence Power;  

Field Value

Precedence

Logarithmic

Logarithmic precedence (3).

public static Precedence Logarithmic;  

Field Value

Precedence

UserDefined

User-defined precedence (4).

public static Precedence UserDefined;  

Field Value

Precedence

Prefix

The highest precedence value.

public static Precedence Prefix;  

Field Value

Precedence

Methods

Equals(Precedence)

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

public bool Equals(Precedence other);  

Parameters

other Precedence: An object to compare with this object.

Returns

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

Equals(Object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj);  

Parameters

obj Object: The object to compare with the current instance.

Returns

Boolean: true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode();  

Returns

Int32: A 32-bit signed integer that is the hash code for this instance.

Clone this wiki locally