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.
30 lines
645 B
30 lines
645 B
5 years ago
|
#if FAT
|
||
|
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace LinqInternal.Collections
|
||
|
{
|
||
|
[System.Diagnostics.DebuggerNonUserCode]
|
||
|
internal sealed class EmptySet<T> : ProgressiveSet<T>, IEnumerable<T>
|
||
|
{
|
||
|
private static readonly EmptySet<T> _instance = new EmptySet<T>();
|
||
|
|
||
|
private EmptySet()
|
||
|
: base(BuildEmptyEnumerable())
|
||
|
{
|
||
|
Progressor.AsEnumerable().Consume();
|
||
|
}
|
||
|
|
||
|
public static EmptySet<T> Instance
|
||
|
{
|
||
|
get { return _instance; }
|
||
|
}
|
||
|
|
||
|
private static IEnumerable<T> BuildEmptyEnumerable()
|
||
|
{
|
||
|
yield break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|