get { //-- Establish return var with default value set. string name = String.Empty; //-- If the column exists, get value. if(this.CurrentDataTable.Columns.Contains(constComputerName)) { name = this.CurrentRow[constComputerName].ToString(); } return name; }set { //-- If the column doesn't exists, create it, using default value of type. if(!this.CurrentDataTable.Columns.Contains(constComputerName)) { this.CurrentDataTable.Columns.Add(constComputerName, typeof(string)); } //-- Column is now ensured to be created and we can set value. this.CurrentRow[constComputerName]= value; }