public static void CutOff(this ILinkNode source) { if (source.GetPrev() != null) { source.GetPrev().SetNext(null); } if (source.GetNext() != null) { source.GetNext().SetPrev(null); } source = null; }
public static void Remove(this ILinkNode source) { if (source.GetPrev() != null) { source.GetPrev().SetNext(source.GetNext()); } if (source.GetNext() != null) { source.GetNext().SetPrev(source.GetPrev()); } source = null; }