openpdn /src/Core/List.cs

Language C# Lines 43
MD5 Hash 8c0a2b64470f5165b9d31477fee36363 Estimated Cost $609 (why?)
Repository https://bitbucket.org/tuldok89/openpdn View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/////////////////////////////////////////////////////////////////////////////////
// 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.                                                                    //
// .                                                                           //
/////////////////////////////////////////////////////////////////////////////////

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 readonly object _head;
        public object Head
        {
            get
            {
                return _head;
            }
        }

        private readonly List _tail;
        public List Tail
        {
            get
            {
                return _tail;
            }
        }

        public List(object head, List tail)
        {
            _head = head;
            _tail = tail;
        }
    }
}
Back to Top