/// <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(); } }
internal static void StructEnumerable <valueType, elementType>(JsonSerializer jsonSerializer, valueType value) where valueType : IEnumerable <elementType> { TypeSerializer <elementType> .Enumerable(jsonSerializer, value); }