Try our conversational search powered by Generative AI!

Property, return other value than a PropertyDataType?

Vote:
 

Hi

I'd like a property that is a Dictionary<string,string>:

public virtual Dictionary<string,string> MyDictionary {get;set;}

With pagetypebuilder i would have made it virtual and imlemented the getter and setter myself. 

How is this done in epi 7? I've tried doing as with pagetypebuilder, but it seems that epi doesnt recognize the property...

#67858
Mar 13, 2013 16:02
Vote:
 

I think it had to do with my backingtype which was generic. It works when i made a non-generic backingtype.

#67863
Mar 13, 2013 16:14
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.