Class NullableRangedInt<T>
Serializable nullable int with range validation and default value.
Inheritance
NullableRangedInt<T>
Assembly: Glitch9.dll
Syntax
[Serializable]
[JsonConverter(typeof(NullableRangedIntConverter<>))]
public abstract class NullableRangedInt<T> : SerializableNullable<int>, INullable, IEquatable<T>, IComparable<T> where T : NullableRangedInt<T>
Type Parameters
Constructors
|
Edit this page
View Source
NullableRangedInt()
Declaration
protected NullableRangedInt()
|
Edit this page
View Source
NullableRangedInt(int?)
Declaration
protected NullableRangedInt(int? value)
Parameters
| Type |
Name |
Description |
| int? |
value |
|
Properties
|
Edit this page
View Source
Default
Declaration
public abstract int Default { get; }
Property Value
|
Edit this page
View Source
Max
Declaration
public abstract int Max { get; }
Property Value
|
Edit this page
View Source
Min
Declaration
public abstract int 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