Exemplo n.º 1
0
        /// <summary>
        /// 枚举集合转换
        /// </summary>
        /// <param name="value">枚举集合</param>
        private void enumerable <valueType, elementType>(valueType value) where valueType : IEnumerable <elementType>
        {
            if (value == null)
            {
                CharStream.WriteJsonNull();
            }
            else if (pushArray(value))
            {
                TypeSerializer <elementType> .Enumerable(this, value);

                Pop();
            }
        }
Exemplo n.º 2
0
 internal static void StructEnumerable <valueType, elementType>(JsonSerializer jsonSerializer, valueType value) where valueType : IEnumerable <elementType>
 {
     TypeSerializer <elementType> .Enumerable(jsonSerializer, value);
 }