Table of Contents

Class AccessHelper<T>

Namespace
Shift.Common
Assembly
Shift.Common.dll

Generic base class for access control helpers.

public abstract class AccessHelper<T> where T : struct, Enum

Type Parameters

T
Inheritance
AccessHelper<T>
Derived
Inherited Members
Extension Methods

Constructors

AccessHelper(T)

protected AccessHelper(T value)

Parameters

value T

Properties

Abbreviations

protected abstract Dictionary<T, string> Abbreviations { get; }

Property Value

Dictionary<T, string>

EmptyValue

protected abstract T EmptyValue { get; }

Property Value

T

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

Value

public T Value { get; set; }

Property Value

T

Methods

Abbreviate()

public string Abbreviate()

Returns

string

Abbreviate(T)

public string Abbreviate(T value)

Parameters

value T

Returns

string

Add(string[])

public T Add(string[] values)

Parameters

values string[]

Returns

T

Add(T)

public T Add(T value)

Parameters

value T

Returns

T

Describe()

public string Describe()

Returns

string

HasAll()

public bool HasAll()

Returns

bool

HasAll(string)

public bool HasAll(string value)

Parameters

value string

Returns

bool

HasAny()

public bool HasAny()

Returns

bool

HasAny(T)

Returns true if any overlapping flags are set.

public bool HasAny(T value)

Parameters

value T

Returns

bool

HasFlag(T)

Returns true only if all overlapping flags are set.

public bool HasFlag(T value)

Parameters

value T

Returns

bool

Parse(string)

protected T Parse(string value)

Parameters

value string

Returns

T

ParseAll()

protected T ParseAll()

Returns

T