Samples.Employee.this C# (CSharp) Method

this() public method

public this ( string columnName ) : string
columnName string
return string
        public string this[string columnName]
        {
            get
            {
                var result = string.Empty;
                switch (columnName)
                {
                    case "Name":
                        if (this.Name == String.Empty)
                        {
                            result = "Name cannot be empty";
                        }

                        break;
                }

                return result;
            }
        }