public AnalyticsOptions WithPositionalParameter(object value)
        {
            if (PositionalParameters == null)
            {
                PositionalParameters = new List <object>();
            }

            PositionalParameters.Add(value);
            return(this);
        }
Example #2
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = InstanceType != null?InstanceType.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Assignments != null ? Assignments.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (PositionalParameters != null ? PositionalParameters.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Children != null ? Children.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Key != null ? Key.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (InstantiateAs != null ? InstantiateAs.GetHashCode() : 0);
                return(hashCode);
            }
        }
Example #3
0
 public override string ToString()
 {
     return("( " + PositionalParameters.Count() + "+" + NamedParameters.Count() + " parameter(s) )");
 }