Class UserWithRoleNames
Holds a user, and a list of their roles' names.
Inheritance
UserWithRoleNames
Assembly: LemonEdge.API.dll
Syntax
public record UserWithRoleNames : IEquatable<UserWithRoleNames>
Constructors
UserWithRoleNames(UserWithRoleNames)
Declaration
protected UserWithRoleNames(UserWithRoleNames original)
Parameters
UserWithRoleNames(IUser, string[])
Holds a user, and a list of their roles' names.
Declaration
public UserWithRoleNames(IUser User, string[] RoleNames)
Parameters
Type |
Name |
Description |
IUser |
User |
The IUser
|
string[] |
RoleNames |
A list of Role names
|
Properties
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
RoleNames
Declaration
public string[] RoleNames { get; init; }
Property Value
User
Declaration
public IUser User { get; init; }
Property Value
Methods
Deconstruct(out IUser, out string[])
Declaration
public void Deconstruct(out IUser User, out string[] RoleNames)
Parameters
Equals(UserWithRoleNames?)
Declaration
public virtual bool Equals(UserWithRoleNames? other)
Parameters
Returns
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
<Clone>$()
Declaration
public virtual UserWithRoleNames <Clone>$()
Returns
Operators
operator ==(UserWithRoleNames?, UserWithRoleNames?)
Declaration
public static bool operator ==(UserWithRoleNames? left, UserWithRoleNames? right)
Parameters
Returns
operator !=(UserWithRoleNames?, UserWithRoleNames?)
Declaration
public static bool operator !=(UserWithRoleNames? left, UserWithRoleNames? right)
Parameters
Returns
Implements
Extension Methods