Esempio n. 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;
 }
Esempio n. 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;
 }