Ejemplo n.º 1
0
 public WktReader(TextReader reader, WktOptions options = null)
 {
     if (null == reader)
     {
         throw new ArgumentNullException("reader");
     }
     Contract.EndContractBlock();
     _reader = reader;
     Options = options ?? new WktOptions();
 }
Ejemplo n.º 2
0
        internal WktWriter(TextWriter writer, WktOptions options, int initialIndent)
        {
            if (null == writer)
            {
                throw new ArgumentNullException("writer");
            }
            Contract.EndContractBlock();

            _writer = writer;
            _indent = initialIndent;
            Options = options ?? new WktOptions();
        }
Ejemplo n.º 3
0
 public WktWriter(TextWriter writer, WktOptions options = null) : this(writer, options, 0)
 {
     Contract.Requires(writer != null);
 }
Ejemplo n.º 4
0
 public WktSerializer(WktOptions options)
 {
     Options = options ?? new WktOptions();
 }