private static string getRandomString(IList <string> dataList) { string returnString = null; try { returnString = (string)RandomUtil.getRandomObjectFromList(dataList); } catch (Exception e) { log.ErrorFormat("Unable to get random value from dataList, " + e); } return(returnString); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private static String getRandomDate(java.util.List<String> dataList) throws Exception private static string getRandomDate(IList <string> dataList) { string returnString = (string)RandomUtil.getRandomObjectFromList(dataList); return(returnString); }