Castle Windsor: Inject NameValueCollection vs. Dictionary
Posted
by Aren B
on Stack Overflow
See other posts from Stack Overflow
or by Aren B
Published on 2010-05-13T19:22:30Z
Indexed on
2010/05/13
19:24 UTC
Read the original article
Hit count: 354
I've already done many configs where dictionaries are passed into services in the <parameters>
block.
But what I find myself needing right now is to build a NameValueCollection
(allowing multiple entries with the same key) or a Collection of KeyValuePair
objects.
The reason for this is im not using this dictionary to look up b
when given a
, im basically using it to pass in a Tuple (pair) of (a,b)
to be used later in code.
Im kind of new to castle windor and I was wondering how i would go about making a List of KeyValuePair
's injected, or a NameValueCollection
injected.
© Stack Overflow or respective owner