Пример #1
0
 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;
 }
Пример #2
0
 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;
 }