items() public static method

public static items ( object>.IDictionary self ) : List
self object>.IDictionary
return List
Esempio n. 1
0
        internal static int CompareToWorker(CodeContext /*!*/ context, IDictionary <object, object> left, List ritems)
        {
            List litems = DictionaryOps.items(left);

            litems.sort(context);
            ritems.sort(context);

            return(litems.CompareToWorker(ritems));
        }
Esempio n. 2
0
        internal static int CompareTo(CodeContext /*!*/ context, IDictionary <object, object> left, IDictionary <object, object> right)
        {
            int lcnt = left.Count;
            int rcnt = right.Count;

            if (lcnt != rcnt)
            {
                return(lcnt > rcnt ? 1 : -1);
            }

            List ritems = DictionaryOps.items(right);

            return(CompareToWorker(context, left, ritems));
        }