コード例 #1
0
 public RomInfo(RomInfo other)
 {
     Id   = other.Id;
     Name = other.Name;
     Save = other.Save;
     Cic  = other.Cic;
 }
コード例 #2
0
        static public RomInfo GetRomById(string id)
        {
            RomInfo res = null;

            var info = _KnownRoms.Find((x) => {
                return(String.Equals(x.Id, id));
            });

            if (info != null)
            {
                // return a copy
                res = new RomInfo(info);
            }

            return(res);
        }