>>Hi All,
>>
>>VFP describes
Collection.Remove method as
>>
Use to remove a member object from a collection.>>
>>.NET describes a similar
Collection(Of T).RemoveAt method as
>>
Removes the element at the specified index of the Collection(Of T).>>
>>Notice indefinite articles in the first case, and definite ones in the second -- e.g. "a collection" vs "the Collection".
>>
>>My three questions:
>>- are they both correct ?
>>- which one is preferable ?
>>- should I bother ?
>>
>>Thank you!
>
>They both sort of feel correct. I think it is the absence/presence of the parameter in the first/second construction that determines the use of the indefinite/definite article.
Well the true .net equivalent is
Collection<T>.Remove()
but anyway;
I'd say 'the collection' is correct. After all it is a method of the collection and can't be used to remove an element from any other collection....