generic List as property in profile

Oct 3, 2008 at 8:25 AM
Hi,

Does the WebProfile Generator allow the use of generic List as property in the profile?
I added one property in the profile section of the web.config file as follows:

<add serializeAs="Binary" name="Subscriptions" type="System.Collections.Generic.List'1[MyFullyQuelifiedType,  MyAssembly]"></add>

the WebProfile.cs file has the followinf property now (Which is not OK):

public virtual System.Collections.Generic.List'1[MyFullyQualifiedType Subscriptions {
            get {
                return ((System.Collections.Generic.List'1[MyFullyQualifiedType )(this.GetPropertyValue("Subscriptions")));
            }
            set {
                this.SetPropertyValue("Subscriptions", value);
            }
        }

is it possible to add such properties to the profile? or what am I doing wrong?

Thanks!

Andrei