NullableEx

Ecng.Common

Represents a wrapper for nullable types that can be serialized.

Наследует: Equatable<NullableEx<T>>

Свойства

HasValue
public bool HasValue { get; private set; }
value = nullableEx.HasValue
nullableEx.HasValue = value

Gets a value indicating whether the current NullableEx object has a valid value.

Value
public T Value { get; set; }
value = nullableEx.Value
nullableEx.Value = value

Gets or sets the value of the current NullableEx object.

Методы

Clone
public override NullableEx<T> Clone()
result = nullableEx.Clone()

Creates a new object that is a copy of the current instance.

Возвращает: A new object that is a copy of this instance.

GetHashCode
public override int GetHashCode()
result = nullableEx.GetHashCode()

Serves as the default hash function.

Возвращает: A hash code for the current object.

OnEquals
protected override bool OnEquals(NullableEx<T> other)
result = nullableEx.OnEquals(other)