コード例 #1
0
 public LinkHelper(PinHelper <T> from, PinHelper <T> to)
 {
     if (from == null)
     {
         throw new ArgumentNullException(nameof(from));
     }
     if (to == null)
     {
         throw new ArgumentNullException(nameof(to));
     }
     if (from.Type != to.Type)
     {
         throw new InvalidOperationException("Pin type mismatch (" + from.Type + ", " + to.Type + ")");
     }
     From = from;
     To   = to;
 }
コード例 #2
0
 public void Add(PinHelper <T> pin)
 {
     pin.Node = _node;
     _list.Add(pin);
 }
コード例 #3
0
 public LinksList(PinHelper <T> pin)
 {
     _pin = pin;
 }