I have the following code for the property ContentType in class that implements IExtenderProvider
public class foo: Component, IExtenderProvider
{
[System.ComponentModel.Category("Validation"),
DefaultValue(typeof(KMS.Core.Forms.Validation.ContentType_Enum),
"KMS.Core.Forms.Validation.ContentType_Enum.String")]
public virtual ContentType_Enum GetContentType (Control target)
{
....
}
}
This code does not realize that String is the default value property ContentType. I suspect some syntax issue, but do not see the
problem.
Ideas?
Thanks
-------------------------------------------
Roy Chastain
KMSystems, Inc.
Joey Calisay - 05 Sep 2004 01:46 GMT
What do you mean not realized? property is still serialized even if
ContentType is ContentType_Enum.String?
> I have the following code for the property ContentType in class that implements IExtenderProvider
>
[quoted text clipped - 18 lines]
> Roy Chastain
> KMSystems, Inc.
Hakan Dolas - 08 Sep 2004 15:02 GMT
Should be like the following I guess :
[Category("Validation"),
DefaultValue(typeof(KMS.Core.Forms.Validation.ContentType_Enum), "String")]
public virtual ContentType_Enum GetContentType (Control target)
{
...
}
> I have the following code for the property ContentType in class that implements IExtenderProvider
>
[quoted text clipped - 18 lines]
> Roy Chastain
> KMSystems, Inc.