public static WebObject.Base FindWebObjectByName(string Name, List <WebObject.Base> WebObjectList) { foreach (WebObject.Base CurrentObject in WebObjectList) { if (CurrentObject.GetName() == Name) { return(CurrentObject); } } return(new WebObject.Base("error", new WebProject(), "", "")); }