a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
27 lines
306 B
C#
27 lines
306 B
C#
// CS0120: An object reference is required to access non-static member `X.Y'
|
|
// Line: 11
|
|
|
|
using System;
|
|
|
|
class X {
|
|
// Public properties and variables.
|
|
public string Y;
|
|
|
|
// Constructors.
|
|
public X()
|
|
{
|
|
}
|
|
|
|
// Public static methods.
|
|
public static void Main(string[] Arguments)
|
|
{
|
|
X.Y = "";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|