Class UserGroupExtensions
Contains a useful extension to compare two UserGroup's.
Inheritance
System.Object
UserGroupExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.API.Extensions
Assembly: Exiled.API.dll
Syntax
public static class UserGroupExtensions
Methods
| Improve this Doc View SourceEqualsTo(UserGroup, UserGroup)
Compares two UserGroup's for equality.
Declaration
public static bool EqualsTo(this UserGroup this, UserGroup other)
Parameters
Type | Name | Description |
---|---|---|
UserGroup | this | The first UserGroup. |
UserGroup | other | The second UserGroup. |
Returns
Type | Description |
---|---|
System.Boolean | true if they are equal; otherwise, false. |
GetKey(UserGroup)
Searches for a key of a group in the PermissionsHandler config.
Declaration
public static string GetKey(this UserGroup this)
Parameters
Type | Name | Description |
---|---|---|
UserGroup | this | The UserGroup. |
Returns
Type | Description |
---|---|
System.String | The key of that group, or null if not found. |
GetValue(String)
Searches for a value of a group in the PermissionsHandler config.
Declaration
public static UserGroup GetValue(string groupName)
Parameters
Type | Name | Description |
---|---|---|
System.String | groupName | The System.String. |
Returns
Type | Description |
---|---|
UserGroup | The value of that group, or null if not found. |