/src/Core/List.cs
C# | 44 lines | 28 code | 4 blank | 12 comment | 0 complexity | c1fe9de27d50ba92dda5d4ede55b4c79 MD5 | raw file
Possible License(s): Unlicense
- /////////////////////////////////////////////////////////////////////////////////
- // Paint.NET //
- // Copyright (C) dotPDN LLC, Rick Brewster, Tom Jackson, and contributors. //
- // Portions Copyright (C) Microsoft Corporation. All Rights Reserved. //
- // See src/Resources/Files/License.txt for full licensing and attribution //
- // details. //
- // . //
- /////////////////////////////////////////////////////////////////////////////////
-
- using System;
-
- namespace PaintDotNet
- {
- /// <summary>
- /// A very simple linked-list class, done functional style. Use null for
- /// the tail to indicate the end of a list.
- /// </summary>
- public sealed class List
- {
- private object head;
- public object Head
- {
- get
- {
- return head;
- }
- }
-
- private List tail;
- public List Tail
- {
- get
- {
- return tail;
- }
- }
-
- public List(object head, List tail)
- {
- this.head = head;
- this.tail = tail;
- }
- }
- }