mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-13 00:35:40 +00:00
Fix CS8600 and CS8602
This commit is contained in:
parent
f3b40d30b3
commit
8dfe6d5082
@ -1,4 +1,5 @@
|
|||||||
using System.Drawing;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
using System.Drawing;
|
||||||
|
|
||||||
namespace X10D.Drawing;
|
namespace X10D.Drawing;
|
||||||
|
|
||||||
@ -128,7 +129,7 @@ public class Polygon : IEquatable<Polygon>
|
|||||||
/// <see langword="true" /> if <paramref name="left" /> and <paramref name="right" /> are considered not equal; otherwise,
|
/// <see langword="true" /> if <paramref name="left" /> and <paramref name="right" /> are considered not equal; otherwise,
|
||||||
/// <see langword="false" />.
|
/// <see langword="false" />.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
public static bool operator !=(Polygon left, Polygon right)
|
public static bool operator !=(Polygon? left, Polygon? right)
|
||||||
{
|
{
|
||||||
return !(left == right);
|
return !(left == right);
|
||||||
}
|
}
|
||||||
@ -138,6 +139,7 @@ public class Polygon : IEquatable<Polygon>
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="polygon">The polygon to convert.</param>
|
/// <param name="polygon">The polygon to convert.</param>
|
||||||
/// <returns>The converted polygon.</returns>
|
/// <returns>The converted polygon.</returns>
|
||||||
|
[return: NotNullIfNotNull("polygon")]
|
||||||
public static explicit operator Polygon?(PolygonF? polygon)
|
public static explicit operator Polygon?(PolygonF? polygon)
|
||||||
{
|
{
|
||||||
return polygon is null ? null : FromPolygonF(polygon);
|
return polygon is null ? null : FromPolygonF(polygon);
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using System.Drawing;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
using System.Drawing;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using X10D.Numerics;
|
using X10D.Numerics;
|
||||||
|
|
||||||
@ -169,6 +170,7 @@ public class PolygonF
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="polygon">The polygon to convert.</param>
|
/// <param name="polygon">The polygon to convert.</param>
|
||||||
/// <returns>The converted polygon.</returns>
|
/// <returns>The converted polygon.</returns>
|
||||||
|
[return: NotNullIfNotNull("polygon")]
|
||||||
public static implicit operator PolygonF?(Polygon? polygon)
|
public static implicit operator PolygonF?(Polygon? polygon)
|
||||||
{
|
{
|
||||||
return polygon is null ? null : FromPolygon(polygon);
|
return polygon is null ? null : FromPolygon(polygon);
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using System.Drawing;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
using System.Drawing;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
namespace X10D.Drawing;
|
namespace X10D.Drawing;
|
||||||
@ -140,6 +141,7 @@ public class Polyhedron : IEquatable<Polyhedron>
|
|||||||
/// <returns>
|
/// <returns>
|
||||||
/// The converted polyhedron, or <see langword="null" /> if <paramref name="polygon" /> is <see langword="null" />.
|
/// The converted polyhedron, or <see langword="null" /> if <paramref name="polygon" /> is <see langword="null" />.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
|
[return: NotNullIfNotNull("polygon")]
|
||||||
public static implicit operator Polyhedron?(Polygon? polygon)
|
public static implicit operator Polyhedron?(Polygon? polygon)
|
||||||
{
|
{
|
||||||
return polygon is null ? null : FromPolygon(polygon);
|
return polygon is null ? null : FromPolygon(polygon);
|
||||||
@ -152,6 +154,7 @@ public class Polyhedron : IEquatable<Polyhedron>
|
|||||||
/// <returns>
|
/// <returns>
|
||||||
/// The converted polyhedron, or <see langword="null" /> if <paramref name="polygon" /> is <see langword="null" />.
|
/// The converted polyhedron, or <see langword="null" /> if <paramref name="polygon" /> is <see langword="null" />.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
|
[return: NotNullIfNotNull("polygon")]
|
||||||
public static implicit operator Polyhedron?(PolygonF? polygon)
|
public static implicit operator Polyhedron?(PolygonF? polygon)
|
||||||
{
|
{
|
||||||
return polygon is null ? null : FromPolygonF(polygon);
|
return polygon is null ? null : FromPolygonF(polygon);
|
||||||
|
Loading…
Reference in New Issue
Block a user