Represents a single bound of a NumericRange.
Namespace: Metalama.Patterns.Contracts.Numeric
Assembly: Metalama.Patterns.Contracts.dll
Syntax
[RunTimeOrCompileTime]
public abstract record NumericBound : ICompileTimeSerializable, IEquatable<NumericBound>Constructors
| Name | Description |
|---|---|
| NumericBound(NumericBound) | |
| NumericBound(bool) | Initializes a new instance of the NumericBound class. |
Properties
| Name | Description |
|---|---|
| EqualityContract | |
| IsAllowed | Gets or sets a value indicating whether the bound value itself is allowed (inclusive) or not (exclusive). |
| ObjectValue | Gets the bound value as an object. |
Methods
| Name | Description |
|---|---|
| Create(decimal, bool) | Creates a NumericBound from a decimal value. |
| Create(double, bool) | Creates a NumericBound from a double value. |
| Create(long, bool, int) | Creates a NumericBound from a long value. |
| Create(ulong, bool) | Creates a NumericBound from a ulong value. |
| Equals(NumericBound?) | |
| Equals(object?) | |
| GetHashCode() | |
| PrintMembers(StringBuilder) | |
| ToString() |
Operators
| Name | Description |
|---|---|
| operator ==(NumericBound?, NumericBound?) | |
| operator !=(NumericBound?, NumericBound?) |