|
I created a simple class and it's converter add the register in the web.config something like this:
<sectionGroup name="Navigation">
<section name="NavigationData" type="PersonConverter, App_Code"/>
</sectionGroup>
...
....
<NavigationData>
<add type="Person, App_Code" />
</NavigationData>
but my code fails here:
public IEnumerable SearchWithCompletePerson() {
return from p in _People
select new {
p.Name,
p.DateOfBirth,
Link = StateController.GetNavigationLink("SelectWithCompletePerson",
new NavigationData()
{
{"foo", p}
})
};
}
It says that my converter it's not implementing the
IConfigurationSectionHandler
but after implementing that interface I still have weird errors, and maybe I'm doing something very wrong.
Cool project by the way, cool code.
|