1 [DllImport
] public class MyDllimportClass
{}
3 [DllImport("user32.dll", SetLastError
=false, ExactSpelling
=false)]
4 [DllImport("user32.dll", ExactSpelling
=false, SetLastError
=false)]
5 [DllImport("user32.dll")]
7 [Conditional("DEBUG"), Conditional("TEST1")] void TraceMethod() {}
10 [AttributeUsage(AttributeTargets
.Class
|AttributeTargets
.Struct
)]
11 public class Author
: Attribute
13 public Author(string name
) { this.name = name; version = 1.0; }
14 public double version
;
18 [AttributeUsage(AttributeTargets
.Class
|AttributeTargets
.Struct
,
19 AllowMultiple
=true)] // multiuse attribute
20 public class Author
: Attribute