[Mono-list] Array.cs
   
    Martin Baulig
     
    martin@gnome.org
       
    06 Mar 2002 15:31:31 +0100
    
    
  
"Dwivedi , Ajay Kumar" <AjayKumar.Dwivedi@dresdner-bank.com> writes:
> > 1.19         (martin   01-Mar-02): 			if (index >=
> array.GetLength(0))
> > 1.20         (lupus    04-Mar-02): 			if (index +
> this.GetLength(0) > array.GetLength(0))
> > 1.21         (martin   05-Mar-02): 			if  (index >=
> array.GetLength(0))
> 
> IMO:
> 
> 	if(index + this.GetLength(0)  > array.GetLowerBound (0) +
> array.GetLength (0))
> 
> should be more accurate thing to do.
Yes, that's correct. It's now fixed in CVS and there's also a new testcase
(#F10-#F13) for this.
-- 
Martin Baulig
martin@gnome.org