protected override SerializeHelper CreateSerializeHelper(
            object rootObj,
            bool useRootObj)
        {
            lock (TypeLock)
            {
                _instance = new FilterSerializationContext();

                foreach (var field in Fields)
                {
                    _instance.AddProperty(typeof(GridView), field);
                }

                // --

                if (useRootObj)
                {
                    return(new FilterSerializeHelper(rootObj));
                }
                else
                {
                    return(new FilterSerializeHelper());
                }
            }
        }
		protected override SerializeHelper CreateSerializeHelper(
			object rootObj,
			bool useRootObj)
		{
			lock (TypeLock)
			{
				_instance = new FilterSerializationContext();

				foreach (var field in Fields)
				{
					_instance.AddProperty(typeof (GridView), field);
				}

				// --

				if (useRootObj)
				{
					return new FilterSerializeHelper(rootObj);
				}
				else
				{
					return new FilterSerializeHelper();
				}
			}
		}