public static List<Stru.ROLE> Dt2List( ref DataTable dt ) { List<Stru.ROLE> lst = new List<ROLE>(); if ( SQL.IsNotValid( ref dt ) ) return lst; foreach ( DataRow dr in dt.Rows ) { Stru.ROLE stru = new ROLE(); stru.Dr2Stru( dr ); lst.Add( stru ); } return lst; }