PageRenderTime 47ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/project/core/Security/UserName.cs

https://github.com/psgirard/CruiseControl.NET
C# | 47 lines | 20 code | 3 blank | 24 comment | 0 complexity | f68438dc4c5f57963d0587c309e56c27 MD5 | raw file
Possible License(s): LGPL-2.0, GPL-2.0
  1. using Exortech.NetReflector;
  2. namespace ThoughtWorks.CruiseControl.Core.Security
  3. {
  4. /// <summary>
  5. /// The name of a user.
  6. /// </summary>
  7. /// <title>User Name</title>
  8. /// <version>1.5</version>
  9. /// <example>
  10. /// <code>
  11. /// &lt;userName name="me" /&gt;
  12. /// </code>
  13. /// </example>
  14. [ReflectorType("userName")]
  15. public class UserName
  16. {
  17. private string userName;
  18. /// <summary>
  19. /// Initializes a new instance of the <see cref="UserName" /> class.
  20. /// </summary>
  21. /// <remarks></remarks>
  22. public UserName() { }
  23. /// <summary>
  24. /// Initializes a new instance of the <see cref="UserName" /> class.
  25. /// </summary>
  26. /// <param name="name">The name.</param>
  27. /// <remarks></remarks>
  28. public UserName(string name)
  29. {
  30. userName = name;
  31. }
  32. /// <summary>
  33. /// The name of the user.
  34. /// </summary>
  35. /// <version>1.5</version>
  36. /// <default>n/a</default>
  37. [ReflectorProperty("name")]
  38. public string Name
  39. {
  40. get { return userName; }
  41. set { userName = value; }
  42. }
  43. }
  44. }