private static bool IsValid <T>(T value) { if (typeof(T) == typeof(string)) { return(!String.IsNullOrEmpty(ConvertParser.GetConvertValue <string>(value))); } return(value != null); }
public static long GetTreeViewItemId(string treeViewItem) { return(ConvertParser.GetConvertValue <long>(treeViewItem.Split(':')[1].Trim())); }