Table of Contents

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

PlacementValidationResult

Properties

ErrorMessage

public string? ErrorMessage { get; init; }

Property Value

string

IsValid

public bool IsValid { get; init; }

Property Value

bool

Methods

Equals(PlacementValidationResult)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(PlacementValidationResult other)

Parameters

other PlacementValidationResult

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Failure(string)

public PlacementValidationResult Failure(string message)

Parameters

message string

Returns

PlacementValidationResult

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

left PlacementValidationResult
right PlacementValidationResult

Returns

bool

operator !=(PlacementValidationResult, PlacementValidationResult)

public static bool operator !=(PlacementValidationResult left, PlacementValidationResult right)

Parameters

left PlacementValidationResult
right PlacementValidationResult

Returns

bool