Table of Contents

Class Permission

Namespace
Loehnert.Lisrt.Users
Assembly
Loehnert.Lisrt.dll

Class for a permission.

public class Permission : IPermission, IEquatable<IPermission>, IHasKey
Inheritance
Permission
Implements
Inherited Members

Constructors

Permission(string, ITranslation)

Initializes a new instance of the Permission class.

public Permission(string key, ITranslation description)

Parameters

key string

Unique key.

description ITranslation

Translatable description.

Properties

Description

Gets a localized description.

public string Description { get; }

Property Value

string

Key

Gets a unique key that identifies this Permission.

public string Key { get; }

Property Value

string

Methods

Equals(IPermission)

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

public bool Equals(IPermission other)

Parameters

other IPermission

The object to compare with the current object.

Returns

bool

True, if other has the same Key.

Remarks

other must not be the same instance, just the same key.