internal static dynamic GetMember(WebGridRow row, string name) { object result; if (row.TryGetMember(name, out result)) { return result; } throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, HelpersResources.WebGrid_ColumnNotFound, name)); }
public static int Level0Count(this WebGridRow webGridRow) { // extension method code here return(SkillLevelStaffs.Where(a => a.Level.Name.Contains("0")).Count()); }