Esempio n. 1
0
 /// <summary>
 /// Initializes a new SeparatedValueWriter with the given schema.
 /// </summary>
 /// <param name="writer">A writer over the separated value document.</param>
 /// <param name="injector">The schema injector to use to determine the schema.</param>
 /// <param name="options">The options used to format the output.</param>
 /// <exception cref="ArgumentNullException">The writer is null.</exception>
 /// <exception cref="ArgumentNullException">The schema injector is null.</exception>
 public SeparatedValueWriter(TextWriter writer, SeparatedValueSchemaInjector injector, SeparatedValueOptions options = null)
 {
     if (writer == null)
     {
         throw new ArgumentNullException(nameof(writer));
     }
     if (injector == null)
     {
         throw new ArgumentNullException(nameof(injector));
     }
     if (options == null)
     {
         options = new SeparatedValueOptions();
     }
     recordWriter = new SeparatedValueRecordWriter(writer, injector, options);
 }
 public SeparatedValueSchemaInjectorWhenBuilder(SeparatedValueSchemaInjector selector, Func <object[], bool> predicate)
 {
     this.selector  = selector;
     this.predicate = predicate;
 }
Esempio n. 3
0
 public SeparatedValueRecordWriter(TextWriter writer, SeparatedValueSchemaInjector injector, SeparatedValueOptions options)
     : this(writer, (SeparatedValueSchema)null, options)
 {
     this.injector = injector;
 }