Exemple #1
0
 public override bool Equals(BaseValue other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (!(other is DateTimeValue converted))
     {
         return(false);
     }
     return(Value == converted.Value);
 }
Exemple #2
0
 public override bool Equals(BaseValue other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (other.GetType() != GetType())
     {
         return(false);
     }
     return(Value == ((DateTimeValue)other).Value);
 }
Exemple #3
0
 public override bool Equals(BaseValue other)
 {
     return(ReferenceEquals(this, other));
 }
Exemple #4
0
        public BaseValue ConvertTo(BaseValue value, TypeId to)
        {
            var convertor = new ConversionVisitor(to);

            return(value.Accept(convertor));
        }
Exemple #5
0
 public Attribute(string name, BaseValue value, AttributeSource source)
 {
     Name   = name;
     Value  = value;
     Source = source;
 }