You wouldn't be able to edit them with CollectionResolver anyway - they are readonly.
Plus most people use IEnumerable<> anyway.

On 18/11/2010 11:28 AM, Dru Sellers wrote:
I like the idea of the 'empty' very nice.

So far I have dug the 'array' style because i really can't edit them so would prefer not to give myself a 'list' but an 'collection' right on!

-d

2010/11/16 Krzysztof Koźmic <[email protected] <mailto:[email protected]>>

    You still have to explicitly add the resolver, yes. But I think
    you'd prefer to use a new type (f you're on WIndsor 2.5) -
    CollectionResolver:
    
http://stw.castleproject.org/Windsor.Resolvers.ashx#codeCollectionResolvercode_4

    which supports all common collection types: ILIst<T>,
    ICollection<T>, T[] and everybody's favorite - IEnumerable<T>.

    You can also pass a flag that will make empty collections (when it
    finds not even a single component for given service) legal.
    HTH,
    Krzysztof


    On 17/11/2010 8:30 AM, Dru Sellers wrote:
    Ok that's what I am doing. :)
    -d

    On Tue, Nov 16, 2010 at 11:21 AM, Jason Meckley
    <[email protected] <mailto:[email protected]>> wrote:

        Kernel.DependencyResolver.AddSubDependencyResolvers(new
        ArrayDependencyResolver(Kernel));

        On Nov 16, 11:17 am, Ken Egozi <[email protected]
        <mailto:[email protected]>> wrote:
        > ResolveAll<>()?
        >
        >
        >
        > On Tue, Nov 16, 2010 at 6:12 PM, Dru Sellers
        <[email protected] <mailto:[email protected]>> wrote:
        > > Is building an array resolver still the recommended best
        practice?
        >
        > > Is there a way to build a 'component' which is just an
        array of things
        > > already registered?
        >
        > > Thanks,
        > > -d
        >
        > > --
        > > You received this message because you are subscribed to
        the Google Groups
        > > "Castle Project Users" group.
        > > To post to this group, send email to
        [email protected]
        <mailto:[email protected]>
        > > .
        > > To unsubscribe from this group, send email to
        > > [email protected]
        
<mailto:castle-project-users%[email protected]><castle-project-users%[email protected]
        <mailto:castle-project-users%[email protected]>>
        > > .
        > > For more options, visit this group at
        > >http://groups.google.com/group/castle-project-users?hl=en.
        >
        > --
        > Ken
        
Egozi.http://www.kenegozi.com/bloghttp://www.delver.comhttp://www.musicglue.comhttp://www.castleproject.orghttp://www.idcc.co.il-
        הכנס הקהילתי הראשון למפתחי דוטנט - בואו בהמוניכם

        --
        You received this message because you are subscribed to the
        Google Groups "Castle Project Users" group.
        To post to this group, send email to
        [email protected]
        <mailto:[email protected]>.
        To unsubscribe from this group, send email to
        [email protected]
        <mailto:castle-project-users%[email protected]>.
        For more options, visit this group at
        http://groups.google.com/group/castle-project-users?hl=en.


-- You received this message because you are subscribed to the
    Google Groups "Castle Project Users" group.
    To post to this group, send email to
    [email protected]
    <mailto:[email protected]>.
    To unsubscribe from this group, send email to
    [email protected]
    <mailto:[email protected]>.
    For more options, visit this group at
    http://groups.google.com/group/castle-project-users?hl=en.

-- You received this message because you are subscribed to the Google
    Groups "Castle Project Users" group.
    To post to this group, send email to
    [email protected]
    <mailto:[email protected]>.
    To unsubscribe from this group, send email to
    [email protected]
    <mailto:castle-project-users%[email protected]>.
    For more options, visit this group at
    http://groups.google.com/group/castle-project-users?hl=en.


--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "Castle 
Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to