Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
Enable nullable reference types.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsagara committed Jun 30, 2020
1 parent 40de1e3 commit 7ae5745
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/CrockfordBase32/CrockfordBase32.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<Title>CrockfordBase32</Title>
<Version>2.0.0-alpha2</Version>
<Version>2.0.0-alpha3</Version>
<Authors>Tatham Oddie, jonsagara</Authors>
<Description>A .NET Standard implementation of Crockford's Base32 encoding that works great for URLs and humans.</Description>
<Company>Tatham Oddie</Company>
Expand All @@ -27,6 +27,10 @@

<!-- Optional: Include the PDB in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>

<!-- Use nullable reference types -->
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
Expand Down
2 changes: 1 addition & 1 deletion src/CrockfordBase32/SymbolDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace CrockfordBase32
internal class SymbolDefinition
{
public int Value { get; set; }
public IEnumerable<char> DecodeSymbols { get; set; }
public IEnumerable<char> DecodeSymbols { get; set; } = null!;
public char EncodeSymbol { get; set; }
}
}

0 comments on commit 7ae5745

Please sign in to comment.