¿Esto es legal? ¿Contiene un error o fallo oculto? Visual Studio no da ningún error o advertencia, pero ReSharper hace:No se puede usar 'esto' en el inicializador de miembro?
/// <summary>
/// immutable tuple for two
/// </summary>
public class Pair<TValue1, TValue2> : Singleton<TValue1>
{
public TValue2 Value2 { get; private set; }
public Pair(TValue1 value1, TValue2 value2, Func<Pair<TValue1, TValue2>, String> toStringFunc)
: this(value1, value2,() => toStringFunc(this)) { } //Red light
}2> : Singleton<TValue1>
Yep. Mi error. ¡Lo siento! –
Corrige la advertencia null/struct y te perdonaré ;-p –