What would be the problem with adding exactly the same "empty" Child_Create that is in BusinessListBase to ReadOnlyListBase.
Doing so would allow child lists of both types to be created with excatly the same code in a factory New method. And increase the consistency of how objects of these types are coded.
Yes, there would be a little added cost over a ReadOnly list just having "Return New ObjectList", but imo the consistency is worth more.
Others thoughts?
Using 3.5.1 Managed properties, the parent item has:
Public ReadOnly Property ChargeInstructions() As CopierChargeInstructionInfoList Get If Not FieldManager.FieldExists(ChargeInstructionsProperty) ThenLoadProperty(
Of CopierChargeInstructionInfoList)(ChargeInstructionsProperty, CopierChargeInstructionInfoList.Create) End If Return GetProperty(Of CopierChargeInstructionInfoList)(ChargeInstructionsProperty) End Get End Property Private Shared ChargeInstructionsProperty As PropertyInfo(Of CopierChargeInstructionInfoList) = _RegisterProperty(
Of CopierChargeInstructionInfoList)(GetType(CopierInfo), New PropertyInfo(Of CopierChargeInstructionInfoList)("ChargeInstructions"))The Create is in the Get
Copyright (c) Marimer LLC