Beispiel #1
0
        public static DateTime ToDateTime(object strDate, object strTime)
        {
            DateTime date     = DateTime.Parse(LibSysUtils.ToString(strDate));
            DateTime time     = DateTime.Parse(LibSysUtils.ToString(strTime));
            DateTime datetime = DateTime.Parse(string.Format("{0} {1}", date.ToString("yyyy-MM-dd"), time.ToString("HH:mm:ss")));

            return(datetime);
        }
Beispiel #2
0
        public static string GetQuotObject(object value)
        {
            string        str     = LibSysUtils.ToString(value);
            StringBuilder builder = new StringBuilder();

            builder.Append(Quto);
            int length = str.Length;

            for (int i = 0; i < length; i++)
            {
                if (str[i] == Quto)
                {
                    builder.Append(Quto);
                }
                builder.Append(str[i]);
            }
            builder.Append(Quto);
            return(builder.ToString());
        }
Beispiel #3
0
 public void WriteString(string value)
 {
     this.m_Writer.Write(LibSysUtils.ToString(value));
 }