Skip to content

Remove minimum requirement for C# version 7#26

Open
bao7uo wants to merge 2 commits into
GhostPack:masterfrom
bao7uo:master
Open

Remove minimum requirement for C# version 7#26
bao7uo wants to merge 2 commits into
GhostPack:masterfrom
bao7uo:master

Conversation

@bao7uo
Copy link
Copy Markdown

@bao7uo bao7uo commented Jul 4, 2022

Adding explicit variable declarations for an out variable, instead of declaring them in the method call means that C# version 7 is not a minimum requirement, and different version of msbuild can be used. So this PR improves backward compatibility with earlier C# versions.

"Starting with C# 7.0, you can declare the out variable in the argument list of the method call, rather than in a separate variable declaration. " - https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/out-parameter-modifier

bao7uo added 2 commits July 4, 2022 21:40
This changes means that C# v7 is no longer a minimum requirement
Add explicity variable declaration for the out variable. This changes means that C# v7 is no longer a minimum requirement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant