PersistentBase.UseUnsafeCreateCollectionStrategy Field
Specifies whether the return value type of the XPCustomMemberInfo.GetValue method can be different than the XPCustomMemberInfo.MemberType property value.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
Field Value
Type | Description |
---|---|
Boolean |
|
Remarks
The UseUnsafeCreateCollectionStrategy property is in effect only when the XPCustomMemberInfo.MemberType property is set to typeof(XPCollection<T>)
or typeof(IList<T>)
. Otherwise, the XPCustomMemberInfo.GetValue method does not raise the InvalidCastException when the result value type does not match the XPCustomMemberInfo.MemberType property value.