ZhiYeJianKang_PeiXun/cyqdata-master/Tool/Convert/ConvertTool.String.cs
2025-02-20 15:41:53 +08:00

32 lines
761 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using CYQ.Data.Json;
using CYQ.Data.SQL;
using CYQ.Data.Table;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Data.SqlTypes;
using System.IO;
using System.Reflection;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Web;
namespace CYQ.Data.Tool
{
/// <summary>
/// 类型转换支持json转实体
/// </summary>
public static partial class ConvertTool
{
internal static object ToString(object value)
{
if (value is string) { return value; }
if (value is byte[])
{
return Convert.ToBase64String((byte[])value);
}
return Convert.ToString(value);
}
}
}