bugDotGNU Portable.NET - Bugs: bug #9555, cscc error: indexer...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9555: cscc error: indexer BindingsCollection this[int index] not recognized if used in same compilation unit

Submitter:  Klaus Treichel <ktreichel>
Submitted:  Mon 05 Jul 2004 02:54:30 PM UTC
   
 
Category:  None Severity:  1 - Wish
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Mon 25 Oct 2004 01:53:31 PM UTC, comment #1: 

There is no UpdateIsBinding() in the class 'Binding' (which is what the compiler actually chokes on). You are calling a non existent method on a class .

You should have got this error too ?

./CurrencyManager.cs:245: called object is not a method or delegate

Gopal.V <t3rmin4t0r>
Group administrator
Mon 05 Jul 2004 02:54:30 PM UTC, original submission:  

when using the indexer inside System.Windows.Forms.dll the error "array or indexed value expected" occures where is shouldn't have.

How to reproduce the error:
Replace the method UpdateIsBinding in pnetlib/System.Windows.Forms/CurrencyManager.cs with the following snippet:

protected override void UpdateIsBinding()
{
int numBindings;
int count;

numBindings = Bindings.Count;
count = 0;
while (count <= numBindings)
{
Bindings[count].UpdateIsBinding();
count++;
}
}

when compiling System.Windows.Forms.dll the error above occures.

Using the indexer BindingsCollection.this[int index] in an extra compilation unit for example a test case linked with System.Windows.Forms.dll is ok.

Klaus Treichel <ktreichel>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-10-25 t3rmin4t0r StatusNone Invalid
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.12