コード例 #1
0
 public override bool Equals(object obj)
 {
     return(obj is VehicleDetail detail &&
            VehicleType.Equals(detail?.VehicleType) &&
            VehicleBrand.Equals(detail?.VehicleBrand) &&
            VehicleModel.Equals(detail?.VehicleModel) &&
            StateNumber.Equals(detail?.StateNumber));
 }
コード例 #2
0
ファイル: Gang.cs プロジェクト: whampson/gta-save-data
        public bool Equals(Gang other)
        {
            if (other == null)
            {
                return(false);
            }

            return(VehicleModel.Equals(other.VehicleModel) &&
                   PedModelOverride.Equals(other.PedModelOverride) &&
                   Weapon1.Equals(other.Weapon1) &&
                   Weapon2.Equals(other.Weapon2));
        }