disable some warnings
This commit is contained in:
parent
f4b160b735
commit
7ccdee7d1b
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user