Ejemplo n.º 1
0
        static RowStuffer()
        {
            _rowStuffers = new DefaultValueHashtable(new DefaultRowStuffer());
            _rowStuffers[typeof(byte)]    = new ByteRowStuffer();
            _rowStuffers[typeof(bool)]    = new TrooleanRowStuffer();
            _rowStuffers[typeof(char)]    = new CharRowStuffer();
            _rowStuffers[typeof(short)]   = new ShortRowStuffer();
            _rowStuffers[typeof(int)]     = new IntRowStuffer();
            _rowStuffers[typeof(float)]   = new FloatRowStuffer();
            _rowStuffers[typeof(long)]    = new LongRowStuffer();
            _rowStuffers[typeof(double)]  = new DoubleRowStuffer();
            _rowStuffers[typeof(decimal)] = new DecimalRowStuffer();
            _rowStuffers[typeof(String)]  = new StringRowStuffer();

            _defaultNullValues = new Hashtable();
            _defaultNullValues[typeof(byte)]    = (byte)0;
            _defaultNullValues[typeof(bool)]    = new Troolean(false, true);
            _defaultNullValues[typeof(char)]    = '\0';
            _defaultNullValues[typeof(short)]   = (short)-99;
            _defaultNullValues[typeof(int)]     = -99;
            _defaultNullValues[typeof(float)]   = float.NaN;
            _defaultNullValues[typeof(long)]    = (long)-99;
            _defaultNullValues[typeof(double)]  = double.NaN;
            _defaultNullValues[typeof(decimal)] = (long)-99;
            _defaultNullValues[typeof(String)]  = "";
        }
Ejemplo n.º 2
0
        static RowStuffer()
        {
            _rowStuffers = new DefaultValueHashtable(new DefaultRowStuffer());
              _rowStuffers[typeof(byte)] = new ByteRowStuffer();
              _rowStuffers[typeof(bool)] = new TrooleanRowStuffer();
              _rowStuffers[typeof(char)] = new CharRowStuffer();
              _rowStuffers[typeof(short)] = new ShortRowStuffer();
              _rowStuffers[typeof(int)] = new IntRowStuffer();
              _rowStuffers[typeof(float)] = new FloatRowStuffer();
              _rowStuffers[typeof(long)] = new LongRowStuffer();
              _rowStuffers[typeof(double)] = new DoubleRowStuffer();
              _rowStuffers[typeof(decimal)] = new DecimalRowStuffer();
              _rowStuffers[typeof(String)] = new StringRowStuffer();

              _defaultNullValues = new Hashtable();
              _defaultNullValues[typeof(byte)] = (byte)0;
              _defaultNullValues[typeof(bool)] = new Troolean(false, true);
              _defaultNullValues[typeof(char)] = '\0';
              _defaultNullValues[typeof(short)] = (short)-99;
              _defaultNullValues[typeof(int)] = -99;
              _defaultNullValues[typeof(float)] = float.NaN;
              _defaultNullValues[typeof(long)] = (long)-99;
              _defaultNullValues[typeof(double)] = double.NaN;
              _defaultNullValues[typeof(decimal)] = (long)-99;
              _defaultNullValues[typeof(String)] = "";
        }