Пример #1
0
 public static ITextDocument ToDocument(this ITextBuffer self)
 {
     ITextDocument ret = self as ITextDocument;
     if (ret == null)
     {
         ret = new SeekableTextReader(self);
     }
     return ret;
 }
Пример #2
0
        public static ITextDocument ToDocument(this ITextBuffer self)
        {
            ITextDocument ret = self as ITextDocument;

            if (ret == null)
            {
                ret = new SeekableTextReader(self);
            }
            return(ret);
        }