Beispiel #1
0
 internal DynamicCell(DynamicRow row, ITestableDisposable disposable, int num)
 {
     Row                 = row;
     Generation          = row.Generation;
     DependsOnDisposable = disposable;
     ColumnNumber        = num;
 }
Beispiel #2
0
 internal DynamicRowEnumeratorNonGeneric(DynamicRow row, ITestableDisposable dependsOn, int?offset, int?length)
 {
     Enumerator = new DynamicRow.DynamicColumnEnumerator(row, offset, length);
     DependsOn  = dependsOn;
     Offset     = offset;
     Length     = length;
 }
Beispiel #3
0
        private DynamicRow MakeRow()
        {
            var ret = new DynamicRow();

            NotifyOnDispose?.Add(ret);

            return(ret);
        }
 internal PassthroughRowEnumerator(DynamicRow row, ITestableDisposable dependsOn, int?offset, int?length)
 {
     _Current   = null;
     Enumerator = new DynamicRow.DynamicColumnEnumerator(row, offset, length);
     DependsOn  = dependsOn;
     Offset     = offset;
     Length     = length;
 }
Beispiel #5
0
        internal DynamicRowRange(DynamicRow parent, int offset, int length)
        {
            Parent = parent;
            Offset = offset;
            Length = length;

            Columns = new DynamicRow.DynamicColumnEnumerable(parent, offset, length);
        }
Beispiel #6
0
            internal DynamicColumnEnumerator(DynamicRow row, int?offset, int?length)
            {
                Row = row;
                ExpectedGeneration = row.Generation;

                Offset = offset;
                Length = length;

                Reset();
            }
        internal DynamicRowEnumerableNonGeneric(object row)
        {
            if (row is DynamicRow dynRow)
            {
                Row       = dynRow;
                DependsOn = dynRow;
                Offset    = Length = null;
            }
            else
            {
                var dynRowRange = Utils.NonNull(row as DynamicRowRange);

                Row       = dynRowRange.Parent;
                DependsOn = dynRowRange;
                Offset    = dynRowRange.Offset;
                Length    = dynRowRange.Length;
            }
        }
Beispiel #8
0
        internal PassthroughRowEnumerable(object row)
        {
            if (row is DynamicRow dynRow)
            {
                Row       = dynRow;
                DependsOn = dynRow;
                Offset    = Length = null;
            }
            else
            {
                var dynRowRange = Utils.NonNull(row as DynamicRowRange);

                Row       = dynRowRange.Parent;
                DependsOn = dynRowRange;
                Offset    = dynRowRange.Offset;
                Length    = dynRowRange.Length;
            }

            Generation = Row.Generation;
        }
Beispiel #9
0
 public DynamicCell(DynamicRow row, int num)
 {
     Row          = row;
     Generation   = row.Generation;
     ColumnNumber = num;
 }
Beispiel #10
0
 internal DynamicColumnEnumerable(DynamicRow row, int?offset, int?length)
 {
     Row    = row;
     Offset = offset;
     Length = length;
 }
        internal DynamicRowEnumerator(DynamicRow row, ITestableDisposable dependsOn, int?offset, int?length)
        {
#pragma warning disable CES0005 // T is generic, and we'll overwrite it before it's used, so default! is needed
            _Current = default !;
 internal DynamicRowMemberNameEnumerator(DynamicRow row)
 {
     Inner      = row;
     Generation = Inner.Generation;
     Index      = -1;
 }
Beispiel #13
0
 internal DynamicRowEnumerableNonGeneric(object row)
 {
     Row = (DynamicRow)row;
 }
Beispiel #14
0
 internal DynamicRowEnumerator(DynamicRow row)
 {
     Row = row;
     Reset();
 }
 internal DynamicRowMemberNameEnumerable(DynamicRow row)
 {
     Inner      = row;
     Generation = Inner.Generation;
 }
 internal DynamicRowEnumeratorNonGeneric(DynamicRow row)
 {
     Row = row;
     Reset();
 }
 internal DynamicRowEnumerable(object row)
 {
     Row = (DynamicRow)row;
 }
Beispiel #18
0
 public void Remove(DynamicRow row)
 => Throw.ImpossibleException_Returns <object>("Shouldn't be possible");
Beispiel #19
0
 public void Remove(DynamicRow row)
 {
     NotifyOnDisposeHead.Remove(ref NotifyOnDisposeHead, row);
 }
Beispiel #20
0
 internal DynamicRowMetaObject(DynamicRow outer, Expression exp) : base(exp, BindingRestrictions.Empty, outer)
 {
     Row = outer;
 }
 public void Dispose()
 {
     Row = null;
 }