PageRenderTime 56ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 0ms

/src/Core/List.cs

https://bitbucket.org/tcz001/openpdn
C# | 44 lines | 28 code | 4 blank | 12 comment | 0 complexity | c1fe9de27d50ba92dda5d4ede55b4c79 MD5 | raw file
Possible License(s): Unlicense
  1. /////////////////////////////////////////////////////////////////////////////////
  2. // Paint.NET //
  3. // Copyright (C) dotPDN LLC, Rick Brewster, Tom Jackson, and contributors. //
  4. // Portions Copyright (C) Microsoft Corporation. All Rights Reserved. //
  5. // See src/Resources/Files/License.txt for full licensing and attribution //
  6. // details. //
  7. // . //
  8. /////////////////////////////////////////////////////////////////////////////////
  9. using System;
  10. namespace PaintDotNet
  11. {
  12. /// <summary>
  13. /// A very simple linked-list class, done functional style. Use null for
  14. /// the tail to indicate the end of a list.
  15. /// </summary>
  16. public sealed class List
  17. {
  18. private object head;
  19. public object Head
  20. {
  21. get
  22. {
  23. return head;
  24. }
  25. }
  26. private List tail;
  27. public List Tail
  28. {
  29. get
  30. {
  31. return tail;
  32. }
  33. }
  34. public List(object head, List tail)
  35. {
  36. this.head = head;
  37. this.tail = tail;
  38. }
  39. }
  40. }