Пример #1
0
 static public P GetHolder <P>(this Holdable <P> item)
 {
     return(item.GetHoldingContainer <P>().IfNotNull(c => c.GetParent()));
 }
Пример #2
0
 static public void OrphanHoldable <P>(this Holdable <P> item)
 {
     item.GetHoldingContainer <P>().IfNotNull(c => c.Remove(item));
 }