From: mp on

"Karl E. Peterson" <karl(a)exmvps.org> wrote in message
news:%23$1ydrvxKHA.3560(a)TK2MSFTNGP02.phx.gbl...
> mp wrote:
>> "Karl E. Peterson" <karl(a)exmvps.org> wrote in message
>> news:uctDgmuxKHA.404(a)TK2MSFTNGP02.phx.gbl...
>>> mp wrote:
>>>> "Dee Earley" <dee.earley(a)icode.co.uk> wrote in message
>>>> news:eDunKtpxKHA.2644(a)TK2MSFTNGP04.phx.gbl...
>>>>> On 18/03/2010 12:52, mp wrote:
>>>>>> A million thanks to Ulrich for his awesome cFileSearch class!!!
>>>>>>
>> snip
>>
>>>> what about the idea of a separate class to hold the values i want and
>>>> just pass that?
>>>> pros and cons anyone?
>>>
>>> I agree. Either pass multiple args, or a class that exposes them as
>>> properties. Types really have no place in the COM world.
>>
>> So any 'best practice' principles to decide between the two?
>> multiple args/ vs class ?
>>
>> Many thanks for your input!
>> mark
>
> Probably comes down to personal style, in most cases. For me, there's a
> tradeoff of complexity as the number of parameters increases. For just a
> few, the class seems like overkill. For many more than that, it's a
> blessing. (This is an internal interface, right? No binary compatibility
> issues?)
>
> The class method would be a bit more overhead, too, if speed is an issue.
>
> --
> .NET: It's About Trust!
> http://vfred.mvps.org
>
>

Thanks for the thoughts.
I realized I already had a little class i was using elsewhere so just added
a couple properties and passed that little guy.
Thanks to all for their input
Mark