blob: 68ad83eb99d4dc7f9f919ee42c373a4779373b5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using System;
namespace My.Namespace {
public interface IMyInterface {
String InterfaceProperty { get; }
}
public abstract class MyInterfaceBase : IMyInterface {
protected abstract String SubclassProperty { get; }
public String InterfaceProperty { get { return this.SubclassProperty; } }
}
public class MyBaseClass : IMyInterface, MyInterfaceBase {
// protected override String SubclassProperty { get { return "foo"; } }
}
}
|