Class NullableRangedFloat<T>
Serializable nullable float with range validation and default value.
Inheritance
NullableRangedFloat<T>
Assembly: Glitch9.dll
Syntax
[Serializable]
[JsonConverter(typeof(NullableRangedFloatConverter<>))]
public abstract class NullableRangedFloat<T> : SerializableNullable<float>, INullable, IEquatable<T>, IComparable<T> where T : NullableRangedFloat<T>
Type Parameters
Constructors
|
Edit this page
View Source
NullableRangedFloat()
Declaration
protected NullableRangedFloat()
|
Edit this page
View Source
NullableRangedFloat(float?)
Declaration
protected NullableRangedFloat(float? value)
Parameters
| Type |
Name |
Description |
| float? |
value |
|
Properties
|
Edit this page
View Source
Default
Declaration
public abstract float Default { get; }
Property Value
|
Edit this page
View Source
Max
Declaration
public abstract float Max { get; }
Property Value
|
Edit this page
View Source
Min
Declaration
public abstract float Min { get; }
Property Value
Methods
|
Edit this page
View Source
CompareTo(T)
Declaration
public int CompareTo(T other)
Parameters
| Type |
Name |
Description |
| T |
other |
|
Returns
|
Edit this page
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
Equals(T)
Declaration
public bool Equals(T other)
Parameters
| Type |
Name |
Description |
| T |
other |
|
Returns
|
Edit this page
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Implements
Extension Methods