2008-11-24 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / mcs / decl.cs
index 4a4c03f4317eaeb23e60259c8de24df3ee448ab6..863f2c91c91a3e340757fc4315ae563b84a03aa3 100644 (file)
@@ -864,6 +864,8 @@ namespace Mono.CSharp {
 
                protected readonly bool is_generic;
                readonly int count_type_params;
+               protected TypeParameter[] type_params;
+               TypeParameter[] type_param_list;
 
                //
                // Whether we are Generic
@@ -966,6 +968,11 @@ namespace Mono.CSharp {
                        get { return (Parent != null && Parent.Parent == null); }
                }
 
+               public virtual bool IsUnmanagedType ()
+               {
+                       return false;
+               }
+
                public virtual void CloseType ()
                {
                        if ((caching_flags & Flags.CloseTypeCreated) == 0){
@@ -1228,12 +1235,6 @@ namespace Mono.CSharp {
                        TypeBuilder.SetCustomAttribute (cb);
                }
 
-               //
-               // Extensions for generics
-               //
-               protected TypeParameter[] type_params;
-               TypeParameter[] type_param_list;
-
                TypeParameter[] initialize_type_params ()
                {
                        if (type_param_list != null)