Class ProxyDemo.User
- Namespace
- PatternKit.Examples.ProxyDemo
- Assembly
- PatternKit.Examples.dll
Represents a user with a name and role for access control demonstrations.
public sealed record ProxyDemo.User : IEquatable<ProxyDemo.User>
- Inheritance
-
ProxyDemo.User
- Implements
- Inherited Members
- Extension Methods
Constructors
User(string, string)
Represents a user with a name and role for access control demonstrations.
public User(string Name, string Role)
Parameters
Properties
Name
The user's name.
public string Name { get; init; }
Property Value
Role
The user's role (e.g., "Admin", "User").
public string Role { get; init; }