Пример #1
0
        public SimpleTableRow CreateRow()
        {
            var row = new SimpleTableRow(this, RowCount, ColumnNames.Count);

            Rows.Add(row);
            return(row);
        }
        private static int?GetNullableIntegerField(this SimpleTableRow row, string name)
        {
            var value = row.GetField(name);

            if (string.IsNullOrWhiteSpace(value))
            {
                return(null);
            }

            return(Convert.ToInt32(value));
        }
        public static int GetIntegerField(this SimpleTableRow row, string name)
        {
            var value = row.GetField(name);

            return(Convert.ToInt32(value));
        }