private SetProjectType ( Project project, string typeString ) : void | ||
project | Project | |
typeString | string | |
Результат | void |
private void SetProjectType(Project project, string typeString)
{
Contract.Requires(project != null);
Contract.Requires(typeString != null);
switch (typeString.ToLowerInvariant())
{
case "executable":
project.Type = ProjectType.Executable;
break;
case "windows-executable":
project.Type = ProjectType.WindowsExecutable;
break;
case "static-library":
case "staticlibrary":
case "static":
project.Type = ProjectType.StaticLibrary;
break;
default:
project.Type = ProjectType.Library;
break;
}
}