41 lines
719 B
C#
41 lines
719 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==null||this.GetType().FullName == value.GetType().FullName)
|
|
{
|
|
_previous = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
private LinkedTarget _next;
|
|
|
|
public LinkedTarget Next
|
|
{
|
|
get { return _next; }
|
|
set {
|
|
if (value == null || this.GetType().FullName==value.GetType().FullName)
|
|
{
|
|
_next = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|