String List Operations
internal static List<string> GetDeleteScriptBranchCommand(SourceControlBranchEntity sourceControlBranchEntity)
{
string commandString = String.Empty;
List<string> commandStringList = new List<string>();
List<SolutionEntity> solutionEntityList = SolutionComponent.GetExistingSolutionEntityListByBranch(sourceControlBranchEntity.SourceControlBranchOperationId);
List<string> oldServerName = new List<string>();
foreach (var solution in solutionEntityList)
{
if (!oldServerName.Contains(solution.SolutionName))
{
commandString = SourceControlScriptBranchCommands.GetDeleteScriptBranchCommands(sourceControlBranchEntity.SourceControlBranchName, ((SourceControlTeamProjectType)sourceControlBranchEntity.TeamProjectId).ToStringLocalized(), solution.SolutionType.Trim());
commandStringList.Add(commandString);
}
oldServerName.Add(solution.SolutionType.Trim());
}
return commandStringList;
}
{
string commandString = String.Empty;
List<string> commandStringList = new List<string>();
List<SolutionEntity> solutionEntityList = SolutionComponent.GetExistingSolutionEntityListByBranch(sourceControlBranchEntity.SourceControlBranchOperationId);
List<string> oldServerName = new List<string>();
foreach (var solution in solutionEntityList)
{
if (!oldServerName.Contains(solution.SolutionName))
{
commandString = SourceControlScriptBranchCommands.GetDeleteScriptBranchCommands(sourceControlBranchEntity.SourceControlBranchName, ((SourceControlTeamProjectType)sourceControlBranchEntity.TeamProjectId).ToStringLocalized(), solution.SolutionType.Trim());
commandStringList.Add(commandString);
}
oldServerName.Add(solution.SolutionType.Trim());
}
return commandStringList;
}
Yorumlar
Yorum Gönder