If you edit your .csproj add this line inside the first <PropertyGroup>
<LangVersion>latest</LangVersion>
or if you want to specify the version
<LangVersion>8.0</LangVersion>
In other words:
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{68EAC5EC-1EE6-4B41-BCF8-ED62CA1B6364}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SqlServerCLRFunctions</RootNamespace>
<AssemblyName>SqlServerCLRFunctions</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<LangVersion>8.0</LangVersion> <!-- added, default is C# 7.3 -->
</PropertyGroup>
<LangVersion>8.0</LangVersion>.