// Implements the ICloneable interface Clone method public object Clone() { Name name = new Name(); name.last = this.last; name.first = this.first; return name; }
public static Name Parse(string stringValue) { string[] words; Name name = new Name(); words = stringValue.Split(','); name.last = words[0]; name.first = words[1]; return name; }