private static bool IsSerializable(object obj) { return (obj != null) ? obj.GetType().IsSerializable : false; }