private ReferenceTypeCollection PopulateReferenceTypeCollection(DataTable dt) { ReferenceTypeCollection lReturn = null; if (dt != null) { lReturn = new ReferenceTypeCollection(); foreach (DataRow dr in dt.Rows) { ReferenceType referenceType = new ReferenceType(); referenceType.Code = dr["CODE"].ToString(); referenceType.Description = dr["DESCRIPT"].ToString(); lReturn.Add(referenceType); } } return lReturn; }
public static void Init(ReferenceTypeCollection childDataTypes) { ReferenceTypeConverter.referenceDataTypes = childDataTypes; }