コード例 #1
0
        public virtual object Clone()
        {
            var ret = new GameMarker();

            ret.Id     = this.Id;
            ret.Name   = this.Name.Clone() as string;
            ret.Source = Source;
            return(ret);
        }
コード例 #2
0
 public bool Equals(GameMarker other)
 {
     if (other == null)
     {
         return(false);
     }
     if (other.Id != Id)
     {
         return(false);
     }
     if (other.Name == null)
     {
         return(false);
     }
     if (other.Name.Equals(Name, StringComparison.InvariantCultureIgnoreCase) == false)
     {
         return(false);
     }
     return(true);
 }