disable some warnings

This commit is contained in:
RaidMax 2022-01-28 09:37:04 -06:00
parent f4b160b735
commit 7ccdee7d1b
2 changed files with 2 additions and 4 deletions

View File

@ -2,6 +2,7 @@
using System.ComponentModel.DataAnnotations;
using System.Text.RegularExpressions;
// ReSharper disable CompareOfFloatsByEqualityOperator
#pragma warning disable CS0659
namespace Data.Models
{
@ -29,9 +30,7 @@ namespace Data.Models
return $"({X}, {Y}, {Z})";
}
#pragma warning disable CS0659
public override bool Equals(object obj)
#pragma warning restore CS0659
{
if (obj is Vector3 vec)
{

View File

@ -3,6 +3,7 @@ using SharedLibraryCore;
using System;
using System.Linq;
// ReSharper disable CompareOfFloatsByEqualityOperator
#pragma warning disable CS0659
namespace LiveRadar
{
@ -23,9 +24,7 @@ namespace LiveRadar
public Vector3 RadianAngles => new Vector3(ViewAngles.X.ToRadians(), ViewAngles.Y.ToRadians(), ViewAngles.Z.ToRadians());
public int Id => GetHashCode();
#pragma warning disable CS0659
public override bool Equals(object obj)
#pragma warning restore CS0659
{
if (obj is RadarEvent re)
{