Class Permission
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
stringUnique key.
description
ITranslationTranslatable description.
Properties
Description
Gets a localized description.
public string Description { get; }
Property Value
Key
Gets a unique key that identifies this Permission.
public string Key { get; }
Property Value
Methods
Equals(IPermission)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IPermission other)
Parameters
other
IPermissionThe object to compare with the current object.
Returns
Remarks
other
must not be the same instance, just the same key.