Table of Contents

Class EnumExtensions

Namespace
LfrlAnvil.Extensions
Assembly
LfrlAnvil.Core.dll

Contains Enum extension methods.

public static class EnumExtensions
Inheritance
EnumExtensions
Inherited Members

Methods

ToBitmask<T>(T)

Creates a new Bitmask<T> instance out of the provided value.

[Pure]
public static Bitmask<T> ToBitmask<T>(this T value) where T : struct, Enum

Parameters

value T

Source value.

Returns

Bitmask<T>

New Bitmask<T> instance.

Type Parameters

T

Enum type.