linkedlistnode.cs
来自「C#高级编程第6版随书源代码 值得下载」· CS 代码 · 共 69 行
CS
69 行
using System;
using System.Collections.Generic;
using System.Text;
namespace Wrox.ProCSharp.Generics
{
public class LinkedListNode
{
public LinkedListNode(object value)
{
this.value = value;
}
private object value;
public object Value
{
get { return value; }
}
private LinkedListNode next;
public LinkedListNode Next
{
get { return next; }
set { next = value; }
}
private LinkedListNode prev;
public LinkedListNode Prev
{
get { return prev; }
set { prev = value; }
}
}
public class LinkedListNode<T>
{
public LinkedListNode(T value)
{
this.value = value;
}
private T value;
public T Value
{
get { return value; }
}
private LinkedListNode<T> next;
public LinkedListNode<T> Next
{
get { return next; }
internal set { next = value; }
}
private LinkedListNode<T> prev;
public LinkedListNode<T> Prev
{
get { return prev; }
internal set { prev = value; }
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?