public StringUp(StringUp value) { if (value == null) { throw new ArgumentException("value " + "object reference not set to an instance of an object."); } _arrayString = new char[value.Length]; Array.Copy(value._arrayString, _arrayString, value.Length); }
public void Append(StringUp value) { //StringUp temp = new StringUp(value); if (value == null) { throw new ArgumentException("value " + "object reference not set to an instance of an object."); } _arrayString = _arrayString.Concat(value._arrayString).ToArray(); }
public bool Equals(StringUp otherstringup) { if (Object.ReferenceEquals(this, otherstringup)) { return(true); } if (this.Length != otherstringup.Length) { return(false); } for (int i = 0; i < otherstringup.Length; i++) { if (this[i] != otherstringup[i]) { return(false); } } return(true); }