Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Implicit inheritance example (C#)
void Main()
{
var b = new B();
Console.WriteLine(String.Format("B is A: {0}", (b is A)));
Console.WriteLine(String.Format("B is ISoftDelete: {0}", (b is ISoftDelete)));
}
interface ISoftDelete
{
bool IsDeleted {get; set;}
}
class A {
public int Id {get; set;}
}
partial class B : A {
public bool IsDeleted {get; set;}
}
partial class B : ISoftDelete {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.