Currently, the only way to get rid of warnings is to update your t4 templates and submit bugs / patches to Rob. Or wait until someone else does.
GetHashCode, , . - . -, . , , , - .
, , , , , , . :
public partial class Foo
{
public override int GetHashCode()
{
int? result = null;
TryGetHashCode(ref result);
if (result.HasValue)
return result.Value;
return new Random().Next();
}
partial void TryGetHashCode(ref int? result);
}
public partial class Foo
{
partial void TryGetHashCode(ref int? result)
{
result = 5;
}
}
TryGetHashCode, TryGetHashCode, result, , , , - .