i have noticed a very strange behavior in one of the classes in the TFS API that look like breaking the definition of the language.
I tried to imitate it but without success, I have tried to implement collection but not letting whom who use the class to call the indexer setter, as it been done in WorkitemCollection Class. it's important that error will be presented at completion and not at run time,so exception is't valid. WorkitemCollection is implementing an IReadOnlyList which is implementing a Collection. by definition Collection has Index Public Get And Set. yet this code is returning a compile error:
WorkitemCollection wic=GetWorkitemCollection();
wic[0]=null;
why is this happening? thanks in advance.