a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
19 lines
261 B
C#
19 lines
261 B
C#
// CS0200: Property or indexer `A.Counter' cannot be assigned to (it is read-only)
|
|
// Line: 9
|
|
|
|
class Program
|
|
{
|
|
static void Main()
|
|
{
|
|
A a = new A();
|
|
a.Counter++;
|
|
}
|
|
}
|
|
|
|
class A {
|
|
private int? _counter;
|
|
public int? Counter {
|
|
get { return _counter; }
|
|
}
|
|
}
|