Пример #1
0
        // Implements the ICloneable interface Clone method
        public object Clone()
        {
            Name name = new Name();

              name.last  = this.last;
              name.first = this.first;
              return name;
        }
Пример #2
0
        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;
        }