Sunday, August 19, 2012

New CodeProject Article

Fast String Searching Using C++ STL Vectors in C#

Here is my latest article. Just published on August 19, 2012

Fast String Searching Using C++ STL Vectors in C#

This article demonstrates searching and selection in C#. It uses P-Invoke and std::vector interfaces. Either Left-match search is done using STL methods and iterators, or the DAGTree ST_enum_suggestions function is called and the results are returned in a std::vector. The vector's elements are then returned to C# using special iterator functions and marshaling.

Friday, July 20, 2012

Article updates

My  KeyedList<TKey, TValue> generic class sample has been update to include a method that sorts string keys in about half the List<T> class sort time. 

This way you can add string keys to KeyedList and then sort instead of using the SortedList collection. In the case of string key types it will take longer to add the keys to SortedList. (And SortedList is faster than SortedDictionary.)

My new Fast List Sort in C# article also has methods to customize string sorting for a specialized List<string> collection.

Thursday, June 28, 2012

Coding Articles

This blog lists my code samples that I have posted on MSDN and

Here are my MSDN code samples:
Here are my Codeproject Articles:
I hope you find these samples helpful.