Exemplo n.º 1
0
        public int CompareTo(ValueObjectBase <TValueObject> other)
        {
            var thisValue  = Dehydrate();
            var otherValue = other.Dehydrate();

            return(string.Compare(thisValue, otherValue, StringComparison.Ordinal));
        }
Exemplo n.º 2
0
 public static bool HasValue <TValue>(this ValueObjectBase <TValue> valueObject)
 {
     return(valueObject != (ValueObjectBase <TValue>)null);
 }