コード例 #1
0
        public AnalyticsOptions WithPositionalParameter(object value)
        {
            if (PositionalParameters == null)
            {
                PositionalParameters = new List <object>();
            }

            PositionalParameters.Add(value);
            return(this);
        }
コード例 #2
0
ファイル: ConstructionNode.cs プロジェクト: walac/NUIPreview
        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);
            }
        }
コード例 #3
0
 public override string ToString()
 {
     return("( " + PositionalParameters.Count() + "+" + NamedParameters.Count() + " parameter(s) )");
 }