CK.WordPredictor.TokenCollection.InsertAt C# (CSharp) Method

InsertAt() private method

private InsertAt ( int insertionPoint, string token ) : void
insertionPoint int
token string
return void
        internal void InsertAt( int insertionPoint, string token )
        {
            var ts = new Token( token );

            if( insertionPoint == _token.Count ) _token.Add( ts );
            else _token.Insert( insertionPoint, ts );

            if( CollectionChanged != null )
                CollectionChanged( this, new NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction.Add, ts ) );
        }