1 // Compiler options: -warnaserror
4 using System
.Reflection
;
5 using System
.ComponentModel
;
7 [assembly
: CLSCompliant(true)]
8 [assembly
: AssemblyTitle("")]
10 public class CLSCLass_6
{
11 private object disposedEvent
= new object ();
12 public EventHandlerList event_handlers
;
14 public event Delegate Disposed
{
15 add { event_handlers.AddHandler (disposedEvent, value); }
16 remove { event_handlers.RemoveHandler (disposedEvent, value); }
20 public delegate CLSDelegate
Delegate ();
23 public class CLSDelegate
{
26 #pragma warning disable 3019
27 internal class CLSClass_5
{
33 #pragma warning restore 3019
36 public class CLSClass_4
{
37 [CLSCompliant (false)]
43 public class CLSClass_3
{
44 [CLSCompliant (false)]
45 public uint Test_3 () {
51 public class CLSClass_2
{
58 public UInt32
Valid() {
64 public class CLSClass
{
67 #pragma warning disable 3019
70 protected ulong Foo3() {
74 #pragma warning restore 3019
75 protected long Foo2() {
81 protected internal class CLSClass_2
{
87 #pragma warning disable 3019, 169
89 private ulong Valid() {
92 #pragma warning restore 3019, 169
99 // protected internal sbyte FooProtectedInternal() {
103 internal UInt32
FooInternal() {
107 #pragma warning disable 169
108 private ulong Foo() {
111 #pragma warning restore 169
114 public static void Main() {}