Skip to main content
A newer version of this page is available. .

Type Properties in XPO

The example below illustrates how to implement Type Properties in an XPO persistent class.

using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.ExpressApp.Utils;
// ...
[ValueConverter(typeof(TypeToStringConverter))]
[TypeConverter(typeof(LocalizedClassInfoTypeConverter))]
[Size(SizeAttribute.Unlimited)]
public Type DataType {
    get { return GetPropertyValue<Type>("DataType"); }
    set { SetPropertyValue<Type>("DataType", value); }
}