Struct PlacementValidationResult
- Namespace
- MoonBark.GridPlacement.Core.Interfaces
- Assembly
- MoonBark.GridPlacement.Core.dll
public readonly struct PlacementValidationResult : IEquatable<PlacementValidationResult>
- Implements
- Inherited Members
Fields
Success
public static readonly PlacementValidationResult Success
Field Value
Properties
ErrorMessage
public string? ErrorMessage { get; init; }
Property Value
IsValid
public bool IsValid { get; init; }
Property Value
Methods
Equals(PlacementValidationResult)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PlacementValidationResult other)
Parameters
otherPlacementValidationResultAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
Failure(string)
public PlacementValidationResult Failure(string message)
Parameters
messagestring
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(PlacementValidationResult, PlacementValidationResult)
public static bool operator ==(PlacementValidationResult left, PlacementValidationResult right)
Parameters
Returns
operator !=(PlacementValidationResult, PlacementValidationResult)
public static bool operator !=(PlacementValidationResult left, PlacementValidationResult right)