/// <summary> /// constructor optionally calls method to init the row information structure /// and return the itself - singleton /// </summary> /// <param name="dt">table to gather info on</param> /// <param name="init">if true, initialize; for example, on import</param> /// <returns></returns> public static dtRowInformation getdtRI(DataTable dt, bool init) { //pass null after initialization to access the DTRowInfo property //or pass init=true (after import) to initialize if (dtRI == null || init) dtRI = new dtRowInformation(dt); return dtRI; }
/// <summary> /// constructor optionally calls method to init the row information structure /// and return the itself - singleton /// </summary> /// <param name="dt">table to gather info on</param> /// <param name="init">if true, initialize; for example, on import</param> /// <returns></returns> public static dtRowInformation getdtRI(DataTable dt, bool init) { //pass null after initialization to access the DTRowInfo property //or pass init=true (after import) to initialize if (dtRI == null || init) { dtRI = new dtRowInformation(dt); } return(dtRI); }