﻿<?xml version="1.0" encoding="utf-8"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS0571</ErrorName>
  <Examples>
    <string>// cs0571.cs: 'System.Reflection.MemberInfo.Name.get' : cannot explicitly call operator or accessor// Line: 9
using System;

public class EntryPoint {
        public static void Main () {
                Type type = typeof(string);
                Console.WriteLine (type.get_Name());
        }
}</string>
    <string>// cs0571.cs: cannot explicitly call operator or accessor
// Line: 12
// Compiler options: -r:CS0571-3-lib.dll

// Testcase for bug #59980

using Test;

public class EntryPoint {
        public static int Main () {
		C1 foo = new C2 ();
                return foo.get_foo ();
        }
}

</string>
    <string>// cs0571.cs: 'MainClass.Value.get' : cannot explicitly call operator or accessor
// Line: 12

class MainClass {
        static int Value {
                get {
                        return 1;
                }
        }
        
        public static void Main() {
                int value = get_Value();
        }
}
</string>
  </Examples>
</ErrorDocumentation>