public Class FindClassByType(TypeInfo type) { var allClasses = string.Join("'", AllClasses.Select(c => c.ClassName)); return(AllClasses.FirstOrDefault(c => c.ClassName == type.Name + ".cs")); }