protected bool CheckIsSerializable(Type t) { if (t == typeof(object)) return true; return (t.IsSerializable && CheckIsSerializable(t.BaseType)); }