public void Control(Profile other) { if (this.ControlValue() != other.ControlValue()) { object[] objArray1 = new object[] { "Control numbers do not match (", this.name, " ", other.name, ") ", this.ControlValue(), " != ", other.ControlValue() }; throw new Exception(string.Concat(objArray1)); } }
public void Control (Profile other) { if (ControlValue() != other.ControlValue()) { throw new System.Exception("Control numbers do not match ("+name + " " + other.name + ") " + this.ControlValue() + " != " + other.ControlValue()); } }