Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit a40bb8ee authored by Harald Martini's avatar Harald Martini
Browse files

removed some net45 specific code

parent 2ed90ade
No related branches found
No related tags found
No related merge requests found
...@@ -266,8 +266,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter.PrimaryBus ...@@ -266,8 +266,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter.PrimaryBus
#region Overrides of PrimaryBusBase #region Overrides of PrimaryBusBase
// ReSharper disable once UseArrayEmptyMethod //not supported in net45 public override GearboxType[] SupportedGearboxTypes => Array.Empty<GearboxType>();
public override GearboxType[] SupportedGearboxTypes => new GearboxType[0];
#endregion #endregion
} }
......
...@@ -48,19 +48,9 @@ namespace TUGraz.VectoCore.OutputData.XML.GroupWriter.Declaration.Vehicle.Compon ...@@ -48,19 +48,9 @@ namespace TUGraz.VectoCore.OutputData.XML.GroupWriter.Declaration.Vehicle.Compon
.GetBusAuxiliariesDeclarationGroupWriter(GroupNames.BusAuxHVACHeatPumpSequenceGroup, _writerNamespace) .GetBusAuxiliariesDeclarationGroupWriter(GroupNames.BusAuxHVACHeatPumpSequenceGroup, _writerNamespace)
.GetGroupElements(aux); .GetGroupElements(aux);
#if NET45
foreach (var e in groupElements) {
elements.Add(e);
}
#else
elements.AddRange(groupElements); elements.AddRange(groupElements);
#endif elements.Add(new XElement(_writerNamespace + XMLNames.Bus_AuxiliaryHeaterPower,
elements.Add(new XElement(_writerNamespace + XMLNames.Bus_AuxiliaryHeaterPower,
aux.HVACAux.AuxHeaterPower?.ToXMLFormat(0))); aux.HVACAux.AuxHeaterPower?.ToXMLFormat(0)));
elements.Add(new XElement(_writerNamespace + XMLNames.Bus_DoubleGlazing, aux.HVACAux.DoubleGlazing)); elements.Add(new XElement(_writerNamespace + XMLNames.Bus_DoubleGlazing, aux.HVACAux.DoubleGlazing));
elements.Add(new XElement(_writerNamespace + XMLNames.Bus_AdjustableAuxiliaryHeater, elements.Add(new XElement(_writerNamespace + XMLNames.Bus_AdjustableAuxiliaryHeater,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment