public bool MoveNext()
 {
     if ((_index
          < (_collection.Count - 1)))
     {
         _index          = (_index + 1);
         _currentElement = this._collection[_index];
         return(true);
     }
     _index = _collection.Count;
     return(false);
 }
예제 #2
0
        public void AddStringQuery( StringQuery sq )
        {
            if ( m_StringQueries == null )
                return;

            if ( m_StringQueries.Count >= m_StringQueryCap )
            {
                log.WarnFormat("Client: {0}: Exceeded string query cap, disconnecting...",
                               this);
                Dispose();
            }
            else
            {
                m_StringQueries.Add( sq );
            }
        }
 public void Insert(int index, StringQuery value)
 {
     this.List.Insert(index, value);
 }
 public void Remove(StringQuery value)
 {
     this.List.Remove(value);
 }
 public int IndexOf(StringQuery value)
 {
     return(this.List.IndexOf(value));
 }
 public bool Contains(StringQuery value)
 {
     return(this.List.Contains(value));
 }
 public int Add(StringQuery value)
 {
     return(this.List.Add(value));
 }
			public bool MoveNext()
			{
				if ((_index
					< (_collection.Count - 1)))
				{
					_index = (_index + 1);
					_currentElement = this._collection[_index];
					return true;
				}
				_index = _collection.Count;
				return false;
			}
 public void Reset()
 {
     _index          = -1;
     _currentElement = null;
 }
		public void Insert( int index, StringQuery value )
		{
			this.List.Insert( index, value );
		}
		public void Remove( StringQuery value )
		{
			this.List.Remove( value );
		}
		public int IndexOf( StringQuery value )
		{
			return this.List.IndexOf( value );
		}
		public bool Contains( StringQuery value )
		{
			return this.List.Contains( value );
		}
		public int Add( StringQuery value )
		{
			return this.List.Add( value );
		}
예제 #15
0
 public bool SendStringQuery( StringQuery sq )
 {
     return SendStringQuery( sq, false );
 }
예제 #16
0
 public bool SendStringQuery( StringQuery sq, bool throwOnOffline )
 {
     if ( m_NetState != null )
     {
         sq.SendTo( m_NetState );
         return true;
     }
     else if ( throwOnOffline )
     {
         throw new MobileNotConnectedException( this, "String query could not be sent." );
     }
     else
     {
         return false;
     }
 }
			public void Reset()
			{
				_index = -1;
				_currentElement = null;
			}