示例#1
0
 /// <summary>
 /// 获取类型
 /// </summary>
 /// <typeparam name="T">byte int object</typeparam>
 /// <returns></returns>
 public T GetMessage <T>()
 {
     try
     {
         return((T)this.message);
     }
     catch (Exception ex)
     {
         if (DebugMessage.Error != null)
         {
             DebugMessage.Error((object)("错误请求:" + ex.ToString()));
         }
         return(default(T));
     }
 }