* UnixMarshal.cs: Errno.EBADF should also trigger a ArgumentException.
[mono.git] / mcs / class / Mono.Posix / Mono.Unix / IncludeAttribute.cs
index d9a9728129fa42338d9d64d8d752abdc5d49d610..29d805bfc200907fe2285ca45c92774672b696fd 100644 (file)
@@ -32,34 +32,28 @@ using System;
 namespace Mono.Unix {
 
        [AttributeUsage (AttributeTargets.Assembly)]
-       public class IncludeAttribute : Attribute {
+       [Obsolete ("Use Mono.Unix.Native.HeaderAttribute", true)]
+       internal class IncludeAttribute : Attribute {
                string [] includes;
                string [] defines;
                
                public IncludeAttribute (string [] includes)
                {
-                       this.includes = includes;
                }
 
                public IncludeAttribute (string [] includes, string [] defines)
                {
-                       this.includes = includes;
-                       this.defines = defines;
                }
 
                public string [] Includes {
                        get {
-                               if (includes == null)
-                                       return new string [0];
-                               return includes;
+                               return null;
                        }
                }
 
                public string [] Defines {
                        get {
-                               if (defines == null)
-                                       return new string [0];
-                               return defines;
+                               return null;
                        }
                }