using System; using System.Collections.Generic; using System.Text; namespace Topten.RichTextKit { /// /// Helper class to swap two values /// public static class SwapHelper { /// /// Swaps two values /// /// The value type /// The first value /// The second value public static void Swap(ref T a, ref T b) { var temp = a; a = b; b = temp; } } }