예제 #1
0
        /// <summary>
        /// Makes a shallow clone of this dictionary; i.e., if keys or values of the
        /// dictionary are reference types, then they are not cloned. If TKey or TValue is a value type,
        /// then each element is copied as if by simple assignment.
        /// </summary>
        /// <remarks>Cloning the dictionary takes time O(N), where N is the number of keys in the dictionary.</remarks>
        /// <returns>The cloned dictionary.</returns>
        public OrderedDictionary <TKey, TValue> Clone()
        {
            OrderedDictionary <TKey, TValue> newDict = new OrderedDictionary <TKey, TValue>(keyComparer, pairComparer, tree.Clone());

            return(newDict);
        }
 public IHttpActionResult Clone()
 {
     return(Json(redblackTree.Clone()));
 }