Skip to content

Class StructExtensions

Namespace: Void.Proxy.Api.Extensions
Assembly: Void.Proxy.Api.dll

Provides value-type comparison helpers.

public static class StructExtensions

Inheritance

objectStructExtensions

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Methods

IsDefault<T>(T)

Determines whether a value equals the default value of its type.

public static bool IsDefault<T>(this T value) where T : struct

Parameters

value T

The value to compare.

Returns

bool

true when value equals default(T); otherwise, false.

Type Parameters

T

The value type being compared.