Пример #1
0
 public static string SubstringCached(this ValueString str, int startIndex, int length)
 {
     var reader = valueStringReader ?? (valueStringReader = new ValueStringReader());
     reader.ValueString = str;
     var result = reader.SubstringCached(startIndex, length);
     reader.ValueString._string = null;
     return result;
 }
Пример #2
0
        public static string SubstringCached(this ValueString str, int startIndex, int length)
        {
            var reader = valueStringReader ?? (valueStringReader = new ValueStringReader());

            reader.ValueString = str;
            var result = reader.SubstringCached(startIndex, length);

            reader.ValueString._string = null;
            return(result);
        }
Пример #3
0
 public static void ClearForCurrentThread()
 {
     cache = null;
     _buffer = null;
     charArrayReader = null;
     clrStringReader = null;
     reseekablestringBuilderReader = null;
     stringBuilderReader = null;
     valueStringReader = null;
 }
Пример #4
0
 public static void ClearForCurrentThread()
 {
     cache           = null;
     _buffer         = null;
     charArrayReader = null;
     clrStringReader = null;
     reseekablestringBuilderReader = null;
     stringBuilderReader           = null;
     valueStringReader             = null;
 }