Ejemplo n.º 1
0
 public static void ClearForCurrentThread()
 {
     cache           = null;
     _buffer         = null;
     charArrayReader = null;
     clrStringReader = null;
     reseekablestringBuilderReader = null;
     stringBuilderReader           = null;
     valueStringReader             = null;
 }
Ejemplo n.º 2
0
        public static string SubstringCached(this string str, int startIndex, int length)
        {
            var reader = clrStringReader ?? (clrStringReader = new ClrStringReader());

            reader.ClrString = str;
            string result = reader.SubstringCached(startIndex, length);

            reader.ClrString = null;
            return(result);
        }