<"Miha Markic" <miha at rthand com>> wrote:
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP***********************@msnews.microsoft.co m... Liz - Newbie <ec******@cornwall.gov.uk> wrote:
... Removing an item from an array (or clearing the array) doesn't really
make sense, as arrays have fixed lengths. However, you *can* do it by
casting the reference to type IList first - Array implements various
IList members using explicit interface implementation.
I am not sure you can - this is what docs say:
... Implements IList.RemoveAt. Always throws NotSupportedException
And it actually throws it.
Am I missing something?
No, by "can do it" I meant "can call it". (I'd originally had that
paragraph elsewhere, specifically talking about Clear, where it made
more sense.)
So yes, you can get to the stage where it will compile, but then it
won't do anything useful.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too