Quote:
Originally Posted by bitpusher
R.E. prop bag that overwrites duplicate properties:
Hmmm... that sounds like a dictionary to me. The service calls return an untyped prop bag with possible duplicates.
|
Maybe Kilrsat can chime in, but I am not aware of any property bags with actual duplicates, instead the values would be comma delimited (i.e. Genre, Actors, etc.) As far as I know, they were simply an artificial construct of daWanderer for the developer's benefit... As noted, you can still use bagHelper.Add(PVSProperty) if you want to bypass this behavior...
Quote:
|
If you do not agree I will be branching BTVLibrary as I DO want to know EXACTLY what the service is returning.
|
You probably don't need to go through that much trouble, instead of using:
PropertyBagHelper bagHelper = new PropertyBagHelper(pvsBag);
just use:
PropertyBagHelper bagHelper = NewBagHelper(pvsBag);
with:
Code:
public PropertyBagHelper NewBagHelper(PVSPropertyBag pvsBag)
{
PropertyBagHelper bagHelper = new PropertyBagHelper();
Foreach (PVSProperty prop in pvsBag) bagHelper.Add(prop);
Return BagHelper;
}