/src/PdnLib/List.cs
C# | 44 lines | 28 code | 4 blank | 12 comment | 0 complexity | 1c0eed26f0746df808309f85b5462b55 MD5 | raw file
Possible License(s): GPL-2.0
- /////////////////////////////////////////////////////////////////////////////////
- // Paint.NET //
- // Copyright (C) Rick Brewster, Tom Jackson, and past 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;
- }
- }
- }