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.v25.1.dll
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.