Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Different implementations of C# 7 defined interfaces regarding to nullability
class SomeClass : ILegacyInterface
{
public string? Foo() => null;
}
class AnotherClass : ILegacyInterface
{
public string Foo() => "a string";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment