private static System.Object fromByteArray(byte[] buf) { if (buf == null) { return(null); } try { System.IO.MemoryStream bais = new System.IO.MemoryStream(buf); System.IO.BinaryReader ois = new System.IO.BinaryReader(bais); return(SupportClass.Deserialize(ois)); } catch (System.Exception) { } return(null); }