~bratsche/ubuntu/maverick/monodevelop/disable-appmenu

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Projects/MonoDevelop.Projects.Dom/DomReturnType.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2009-03-17 17:55:55 UTC
  • mfrom: (1.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20090317175555-2w5qbmu0l5maq6fq
Tags: 1.9.3+dfsg-1ubuntu1
* FFe for Monodevelop 2 granted by motu-release team :)
* Merge from Debian Unstable , remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        public class DomReturnType : IReturnType
100
100
        {
101
101
                static readonly int[] zeroDimensions = new int[0];
102
 
                static readonly int[] oneDimensions = new int[] { 1 };
 
102
                static readonly int[] oneDimensions = new int[] { 0 };
103
103
                
104
104
                List<IReturnTypePart> parts = new List<IReturnTypePart> ();
105
105
                
109
109
                public static readonly IReturnType Void;
110
110
                public static readonly IReturnType Object;
111
111
                public static readonly IReturnType Exception;
 
112
                public static readonly IReturnType Int32;
112
113
                
113
114
                static DomReturnType ()
114
115
                {
121
122
                        Void      = GetSharedReturnType ("System.Void");
122
123
                        Object    = GetSharedReturnType ("System.Object");
123
124
                        Exception = GetSharedReturnType ("System.Exception");
 
125
                        Int32 = GetSharedReturnType ("System.Int32");
124
126
                }
125
127
 
126
128
                public List<IReturnTypePart> Parts {
357
359
                        // Reuse common dimension constants to save memory
358
360
                        if (arrayDimensions == null)
359
361
                                dimensions = null;
360
 
                        else if (arrayDimensions != null && arrayDimensions.Length == 1 && arrayDimensions[0] == 1)
 
362
                        else if (arrayDimensions != null && arrayDimensions.Length == 1 && arrayDimensions[0] == 0)
361
363
                                dimensions = oneDimensions;
362
364
                        else
363
365
                                dimensions = arrayDimensions;