You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1020 B
38 lines
1020 B
5 years ago
|
// Needed for NET30
|
||
|
#if !NET_4_6
|
||
|
using System.Collections.Generic;
|
||
|
using LinqInternal.Collections.ThreadSafe;
|
||
|
|
||
|
namespace LinqInternal.Collections.Specialized
|
||
|
{
|
||
|
[System.Diagnostics.DebuggerNonUserCode]
|
||
|
internal abstract class ExtendedEnumerableBase<T> : IEnumerable<T>
|
||
|
{
|
||
|
private readonly IEnumerable<T> _append;
|
||
|
private readonly IEnumerable<T> _target;
|
||
|
|
||
|
protected ExtendedEnumerableBase(IEnumerable<T> target, IEnumerable<T> append)
|
||
|
{
|
||
|
_target = target ?? ArrayReservoir<T>.EmptyArray;
|
||
|
_append = append ?? ArrayReservoir<T>.EmptyArray;
|
||
|
}
|
||
|
|
||
|
protected IEnumerable<T> Append
|
||
|
{
|
||
|
get { return _append; }
|
||
|
}
|
||
|
|
||
|
protected IEnumerable<T> Target
|
||
|
{
|
||
|
get { return _target; }
|
||
|
}
|
||
|
|
||
|
public abstract IEnumerator<T> GetEnumerator();
|
||
|
|
||
|
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
|
||
|
{
|
||
|
return GetEnumerator();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|