6
ToString anulable ()
Veo en todas partes construcciones como: int? myVar = null; string test = myVar.HasValue ? myVar.Value.ToString() : string.Empty; ¿Por qué no usar simplemente: string test = myVar.ToString(); ¿No es exactamente lo mismo? Al menos Reflector dice que: public override string ToString() { if (!this.HasValue) { return ""; } return this.value.ToString(); …