示例#1
0
        public static string ToJSON(this IDictionary _dictionary)
        {
            string _jsonStr = JSONUtility.ToJSON(_dictionary);

            return(JSONUtility.IsNull(_jsonStr) ? null : _jsonStr);
        }
示例#2
0
        public static string ToJSON(this IList _list)
        {
            string _jsonStr = JSONUtility.ToJSON(_list);

            return(JSONUtility.IsNull(_jsonStr) ? null : _jsonStr);
        }