internal Enumerator(SpanSelectManyEnumerable <TSource, TSubEnumerable, TSubEnumerator, TResult, TSelector> enumerable)
 {
     source        = enumerable.source;
     selector      = enumerable.selector;
     state         = EnumeratorState.Enumerating;
     sourceIndex   = -1;
     end           = sourceIndex + enumerable.source.Length;
     subEnumerator = default;
 }
Beispiel #2
0
 protected internal TileTagEntrySelection(ITileTagEntrySelectionFactory <TSelector> factory,
                                          TSelector selector,
                                          ushort index,
                                          string tag)
 {
     Owner        = factory ?? throw new ArgumentNullException();
     Selector     = selector;
     SelectorText = selector?.ToString() ?? "";
     Index        = index;
     Tag          = tag;
 }
Beispiel #3
0
 public CotpOptions(IsoConnectionParameters cp)
 {
     if (cp == null)
     {
         tSelDst  = new TSelector(2, 0x0001);
         tSelSrc  = new TSelector(2, 0x0000);
         tpduSize = 0x0a;    // 1024 byte max PDU size
     }
     else
     {
         tSelDst  = cp.remoteTSelector;
         tSelSrc  = cp.localTSelector;
         tpduSize = 0x0a;    // 1024 byte max PDU size
     }
 }