disable some warnings
This commit is contained in:
parent
f4b160b735
commit
7ccdee7d1b
@ -2,6 +2,7 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
// ReSharper disable CompareOfFloatsByEqualityOperator
|
// ReSharper disable CompareOfFloatsByEqualityOperator
|
||||||
|
#pragma warning disable CS0659
|
||||||
|
|
||||||
namespace Data.Models
|
namespace Data.Models
|
||||||
{
|
{
|
||||||
@ -29,9 +30,7 @@ namespace Data.Models
|
|||||||
return $"({X}, {Y}, {Z})";
|
return $"({X}, {Y}, {Z})";
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma warning disable CS0659
|
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object obj)
|
||||||
#pragma warning restore CS0659
|
|
||||||
{
|
{
|
||||||
if (obj is Vector3 vec)
|
if (obj is Vector3 vec)
|
||||||
{
|
{
|
||||||
|
@ -3,6 +3,7 @@ using SharedLibraryCore;
|
|||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
// ReSharper disable CompareOfFloatsByEqualityOperator
|
// ReSharper disable CompareOfFloatsByEqualityOperator
|
||||||
|
#pragma warning disable CS0659
|
||||||
|
|
||||||
namespace LiveRadar
|
namespace LiveRadar
|
||||||
{
|
{
|
||||||
@ -23,9 +24,7 @@ namespace LiveRadar
|
|||||||
public Vector3 RadianAngles => new Vector3(ViewAngles.X.ToRadians(), ViewAngles.Y.ToRadians(), ViewAngles.Z.ToRadians());
|
public Vector3 RadianAngles => new Vector3(ViewAngles.X.ToRadians(), ViewAngles.Y.ToRadians(), ViewAngles.Z.ToRadians());
|
||||||
public int Id => GetHashCode();
|
public int Id => GetHashCode();
|
||||||
|
|
||||||
#pragma warning disable CS0659
|
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object obj)
|
||||||
#pragma warning restore CS0659
|
|
||||||
{
|
{
|
||||||
if (obj is RadarEvent re)
|
if (obj is RadarEvent re)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user