I tried the below code in a C# (ClassLibrary) project that targets .NET Standard 2.0 and it compiles successfully, meanwhile it gives an error in another project targeting .NET Core 3.1
private void SetOffset(out TimeSpan offset)
{
return;
}
The error in .NET Core project is as expected:
CS0177: The out parameter 'offset' must be assigned to before control leaves the current method