<?xml version="1.0" encoding="iso-8859-1"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS1667</ErrorName>
  <Examples>
    <string>// cs1667.cs: 'System.Obsolete' is not valid on property or event accessors. It is valid on 'class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations only.
// Line: 14

class Test {
        public static bool Error {
            [System.Obsolete] set {
            }
        }
}

class MainClass {
        public static void Main () {
                Test.Error = false;
        }
}</string>
    <string>// cs1667.cs: Attribute 'Conditional' is not valid on property or event accessors. It is valid on 'class, method' declarations only.
// Line: 10

using System;
using System.Diagnostics;

class Class1 
{
        public int G {
            [Conditional("DEBUG")]
            get {
                    return 1;
            }
	}
}
</string>
    <string>// cs1667.cs: 'System.CLSCompliant' is not valid on property or event accessors. It is valid on 'assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, param, delegate, return, type parameter' declarations only.
// Line: 10

using System;
using System.Diagnostics;

class Class1 
{
        public event ResolveEventHandler G {
            [CLSCompliant(false)]
            add {}
            remove {}
	}
}

</string>
    <string>// cs1667.cs: 'System.CLSCompliant' is not valid on property or event accessors. It is valid on 'assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, param, delegate, return, type parameter' declarations only.
// Line: 14

class Test {
        public static bool Error {
            [System.CLSCompliant (true)] get {
                return false;
            }
        }
}

class MainClass {
        public static void Main () {
                System.Console.WriteLine (Test.Error);
        }
}</string>
  </Examples>
</ErrorDocumentation>