コード例 #1
0
 public PathFileInInformation(string path, Encoding encoding, IFileInErrorSink errorSink, SymbolDocumentInfo symbolDocument)
 {
     if (String.IsNullOrWhiteSpace(path))
     {
         throw new ArgumentNullException("path");
     }
     if (encoding == null)
     {
         throw new ArgumentNullException("encoding");
     }
     this.Path           = path;
     this.Encoding       = encoding;
     this.ErrorSink      = errorSink;      // null is OK
     this.SymbolDocument = symbolDocument; // null is OK
 }
コード例 #2
0
 public StringFileInInformation(string code, IFileInErrorSink errorSink)
     : this(code)
 {
     this.ErrorSink = errorSink;
 }
コード例 #3
0
 public DelegateFileInInformation(Func <TextReader> getReaderFunction, IFileInErrorSink errorSink, SymbolDocumentInfo symbolDocument)
     : this(getReaderFunction)
 {
     this.ErrorSink      = errorSink;
     this.SymbolDocument = symbolDocument;
 }
コード例 #4
0
 public DelegateFileInInformation(Func <TextReader> getReaderFunction, IFileInErrorSink errorSink)
     : this(getReaderFunction, errorSink, null)
 {
 }
コード例 #5
0
 public PathFileInInformation(string path, Encoding encoding, IFileInErrorSink errorSink)
     : this(path, encoding, errorSink, null)
 {
 }