paint-mono /src/PdnLib/List.cs

Language C# Lines 45
MD5 Hash 1c0eed26f0746df808309f85b5462b55 Estimated Cost $633 (why?)
Repository http://paint-mono.googlecode.com/svn/trunk/ View Raw File
 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
43
44
/////////////////////////////////////////////////////////////////////////////////
// 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;
        }
    }
}
Back to Top