I have the following code in a n-tier app, which is repeated about 40 times in my using a different function in DA.Components, and I'm wondering if there's a cleaner way to do it.
NewECNs is populated within the function call, and is normally empty, and may eventually get up to a count of 10.
Dim NewECNs As New List(Of String)
lblTypeLabel.Text = DA.Components.GetArrTypeLabelPN(arrFamily, _EffectiveDate, NewECNs)
For Each s As String In NewECNs
ECNs.Add(New ECN(s, "Type Label"))
My current thinking is if I could pass an address of the property ECN as list(of string), then I could remove all but the single function call, but I don't think I can do this? Any other ideas?