Hello:
I need a method that always returns the default value. It is similar
to DefaultIfEmpty.
public static IEnumerable<TMy MethodName<T>()
{
while (true)
{
yield return default(T);
}
}
Any ideas? Anything will do. Don't ask me why this is useful . . . it
just is. :-)
I need a method that always returns the default value. It is similar
to DefaultIfEmpty.
public static IEnumerable<TMy MethodName<T>()
{
while (true)
{
yield return default(T);
}
}
Any ideas? Anything will do. Don't ask me why this is useful . . . it
just is. :-)
Comment