Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 2ba1f23b authored by Michael KRISPER's avatar Michael KRISPER
Browse files

removed redunant .ToString methods.

parent 0ddf74e2
Branches
Tags
No related merge requests found
......@@ -258,7 +258,7 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl
DriverData = _driverData,
ExecutionMode = ExecutionMode.Declaration,
JobName = InputDataProvider.JobInputData.JobName,
ModFileSuffix = "_" + _segmentCompletedBus.VehicleClass.GetClassNumber() + "-Specific_" + loading.Key.ToString(),
ModFileSuffix = "_" + _segmentCompletedBus.VehicleClass.GetClassNumber() + "-Specific_" + loading.Key,
Report = Report,
Mission = mission,
InputDataHash = InputDataProvider.XMLHash,
......@@ -305,7 +305,7 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl
DriverData = _driverData,
ExecutionMode = ExecutionMode.Declaration,
JobName = InputDataProvider.JobInputData.JobName,
ModFileSuffix = "_" + _segmentCompletedBus.VehicleClass.GetClassNumber() + "-Generic_" + loading.Key.ToString(),
ModFileSuffix = "_" + _segmentCompletedBus.VehicleClass.GetClassNumber() + "-Generic_" + loading.Key,
Report = Report,
Mission = mission,
InputDataHash = InputDataProvider.XMLHash,
......
......@@ -246,7 +246,7 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl
DriverData = _driverData,
ExecutionMode = ExecutionMode.Declaration,
JobName = InputDataProvider.JobInputData.ManufacturingStages.Last().Vehicle.Identifier,//?!? Jobname
ModFileSuffix = "_" + _segmentCompletedBus.VehicleClass.GetClassNumber() + "-Specific_" + loading.Key.ToString(),
ModFileSuffix = $"_{_segmentCompletedBus.VehicleClass.GetClassNumber()}-Specific_{loading.Key}",
Report = Report,
Mission = mission,
InputDataHash = InputDataProvider.XMLHash,// right hash?!?
......@@ -293,7 +293,7 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl
DriverData = _driverData,
ExecutionMode = ExecutionMode.Declaration,
JobName = InputDataProvider.JobInputData.ManufacturingStages.Last().Vehicle.Identifier,
ModFileSuffix = "_" + _segmentCompletedBus.VehicleClass.GetClassNumber() + "-Generic_" + loading.Key.ToString(),
ModFileSuffix = $"_{_segmentCompletedBus.VehicleClass.GetClassNumber()}-Generic_{loading.Key}",
Report = Report,
Mission = mission,
InputDataHash = InputDataProvider.XMLHash,
......
......@@ -175,7 +175,7 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl
DriverData = _driverdata,
ExecutionMode = ExecutionMode.Declaration,
JobName = InputDataProvider.JobInputData.JobName,
ModFileSuffix = (engineModes.Count > 1 ? $"_EngineMode{modeIdx}_" : "") + loading.Key.ToString(),
ModFileSuffix = (engineModes.Count > 1 ? $"_EngineMode{modeIdx}_" : "") + loading.Key,
Report = Report,
Mission = mission,
PTO = mission.MissionType == MissionType.MunicipalUtility
......
......@@ -91,7 +91,7 @@ namespace TUGraz.VectoCore.Models.Declaration {
{
var missionTypes = Enum.GetValues(typeof(MissionType)).Cast<MissionType>().Where(
m => ((m.IsDeclarationMission() && m != MissionType.ExemptedMission) || m == MissionType.VerificationTest) &&
table.Columns.Contains("tubing-" + m.ToString())).ToList();
table.Columns.Contains("tubing-" + m)).ToList();
foreach (DataRow row in table.Rows) {
var axleNumber = row.Field<string>("technology");
......
......@@ -129,7 +129,7 @@ namespace TUGraz.VectoCore.OutputData.XML
private string GetTagName(AuxiliaryType auxId)
{
return auxId.ToString() + "Technology";
return auxId + "Technology";
}
......
......@@ -700,7 +700,7 @@ namespace TUGraz.VectoCore.OutputData.XML
private string GetTagName(AuxiliaryType auxId)
{
return auxId.ToString() + "Technology";
return auxId + "Technology";
}
private object[] GetCommonDescription(CombustionEngineData data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment