NamePair.cs 357 B

12345678910111213141516171819202122
  1. using System;
  2. namespace MaidStatus
  3. {
  4. public struct NamePair
  5. {
  6. public NamePair(string name1, string name2)
  7. {
  8. this.name1 = name1;
  9. this.name2 = name2;
  10. }
  11. public string GetFullName(string separationText = " ")
  12. {
  13. return this.name1 + separationText + this.name2;
  14. }
  15. public readonly string name1;
  16. public readonly string name2;
  17. }
  18. }