¡@

Home 

c# Programming Glossary: indexb

String.comparison performance (with trim)

http://stackoverflow.com/questions/1862314/string-comparison-performance-with-trim

static int Compare string strA int indexA string strB int indexB int length StringComparison comparisonType but that seems rather.. TrimCompareIgnoreCase string a string b int indexA 0 int indexB 0 while indexA a.Length Char.IsWhiteSpace a indexA indexA while.. indexA a.Length Char.IsWhiteSpace a indexA indexA while indexB b.Length Char.IsWhiteSpace b indexB indexB int lenA a.Length..

Swap two items in List<T>

http://stackoverflow.com/questions/2094239/swap-two-items-in-listt

method . static void Swap IList int list int indexA int indexB int tmp list indexA list indexA list indexB list indexB tmp.. int indexA int indexB int tmp list indexA list indexA list indexB list indexB tmp which can be linq i fied like static IList T.. indexB int tmp list indexA list indexA list indexB list indexB tmp which can be linq i fied like static IList T Swap T this..

C#: Good/Best implementation of Swap method

http://stackoverflow.com/questions/552731/c-good-best-implementation-of-swap-method

like static void Swap IList int list int indexA int indexB int tmp list indexA list indexA list indexB list indexB tmp.. int indexA int indexB int tmp list indexA list indexA list indexB list indexB tmp it would be trivial to make this generic however.. indexB int tmp list indexA list indexA list indexB list indexB tmp it would be trivial to make this generic however the original..