Beispiel #1
0
 public override bool Equals(object other)
 {
     Man m = other as Man; return(m == null ? false : m.name == name && m.age == age);
 }
Beispiel #2
0
 public static string Surname(Man m)
 {
     return(m.name.Substring(m.name.LastIndexOf(' ') + 1));
 }
Beispiel #3
0
        object ICloneable.Clone()
        {
            Man m = this as Man;

            return(m);
        }