Esempio n. 1
0
        /// <summary>
        /// Obj转成GUID
        /// </summary>
        /// <param name="obj">对象</param>
        /// <returns></returns>
        public static System.Guid GetObjGUID(object obj)
        {
            string objectString = DxPublic.GetObjString(obj);

            System.Guid result;
            if (!System.Guid.TryParse(objectString, out result))
            {
                result = System.Guid.Parse("00000000-0000-0000-0000-000000000000");
            }
            return(result);
        }
Esempio n. 2
0
 /// <summary>
 /// Obj转成大定的String类型
 /// </summary>
 /// <param name="obj">对象</param>
 /// <returns></returns>
 public static string GetObjStrUpperTrim(object obj)
 {
     return(DxPublic.GetObjString(obj).Trim().ToUpper());
 }