Beispiel #1
0
 /// <summary>
 /// 读取一个对象
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool ReadObject <T>(out T obj)
 {
     byte[] data;
     if (this.ReadByteArray(out data))
     {
         obj = (T)SerializationManager.DeserializeBin(data);
         return(true);
     }
     else
     {
         obj = default(T);
         return(false);
     }
 }