示例#1
0
 public SolrInputField DeepClone()
 {
     var clone = new SolrInputField(Name);
     clone.Boost = Boost;
     if (Value is ICollection)
         clone.Value = new ArrayList((Value as ICollection));
     else
         clone.Value = Value;
     return clone;
 }
示例#2
0
        public SolrInputField DeepClone()
        {
            var clone = new SolrInputField(Name);

            clone.Boost = Boost;
            if (Value is ICollection)
            {
                clone.Value = new ArrayList((Value as ICollection));
            }
            else
            {
                clone.Value = Value;
            }
            return(clone);
        }