40 lines
560 B
C#
40 lines
560 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace StgSharp_Logic
|
|
{
|
|
public class LinkedTarget
|
|
{
|
|
private LinkedTarget _previous;
|
|
|
|
public LinkedTarget Previous
|
|
{
|
|
get { return _previous; }
|
|
set
|
|
{
|
|
if (value.GetType()==this.GetType())
|
|
{
|
|
_previous = value;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
private LinkedTarget _next;
|
|
|
|
public LinkedTarget Next
|
|
{
|
|
get { return _next; }
|
|
set {
|
|
_next = value;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|