Exemplo n.º 1
0
 protected bool Equals(PrimitivesReferenceModel other)
 {
     return(string.Equals(StringVal, other.StringVal) && IntVal == other.IntVal &&
            BooleanVal == other.BooleanVal && ByteVal == other.ByteVal && LongVal == other.LongVal &&
            FloatVal.Equals(other.FloatVal) && DoubleVal.Equals(other.DoubleVal) &&
            DateTimeVal.Equals(other.DateTimeVal) && ShortVal == other.ShortVal &&
            UShortVal == other.UShortVal && UIntVal == other.UIntVal && ULongVal == other.ULongVal &&
            SByteVal == other.SByteVal && CharVal == other.CharVal);
 }
Exemplo n.º 2
0
        protected override void Execute(CodeActivityContext context)
        {
            DateTime dateTimeInput = DateTimeVal.Get <DateTime>(context);
            int      seconds       = Seconds.Get <int>(context);

            DateTime calculatedDate = dateTimeInput.AddSeconds(seconds * -1);

            CalculatedValue.Set(context, calculatedDate);
        }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (StringVal != null ? StringVal.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IntVal;
         hashCode = (hashCode * 397) ^ BooleanVal.GetHashCode();
         hashCode = (hashCode * 397) ^ ByteVal.GetHashCode();
         hashCode = (hashCode * 397) ^ LongVal.GetHashCode();
         hashCode = (hashCode * 397) ^ FloatVal.GetHashCode();
         hashCode = (hashCode * 397) ^ DoubleVal.GetHashCode();
         hashCode = (hashCode * 397) ^ DateTimeVal.GetHashCode();
         hashCode = (hashCode * 397) ^ ShortVal.GetHashCode();
         hashCode = (hashCode * 397) ^ UShortVal.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)UIntVal;
         hashCode = (hashCode * 397) ^ ULongVal.GetHashCode();
         hashCode = (hashCode * 397) ^ SByteVal.GetHashCode();
         hashCode = (hashCode * 397) ^ CharVal.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 4
0
 public virtual object Visit(DateTimeVal e)
 {
     return(e);
 }
Exemplo n.º 5
0
 public override object Visit(DateTimeVal e)
 {
     addToHeadOrBody(e.val, ":V");
     return(e);
 }