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

Skip to content
Snippets Groups Projects
Commit add12b5f authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

adding missing file

parent 21f7f7bf
No related branches found
No related tags found
No related merge requests found
using System;
using System.Diagnostics.CodeAnalysis;
namespace TUGraz.VectoCommon.Models
{
public enum FuelType
{
// ReSharper disable InconsistentNaming
DieselCI,
EthanolCI,
PetrolPI,
EthanolPI,
LPG,
NG
// ReSharper restore InconsistentNaming
}
public static class FuelTypeHelper
{
public static string GetLabel(this FuelType ftype)
{
switch (ftype) {
case FuelType.DieselCI:
return "Diesel CI";
case FuelType.EthanolCI:
return "Ethanol CI";
case FuelType.PetrolPI:
return "Petrol PI";
case FuelType.EthanolPI:
return "Ethanol PI";
case FuelType.LPG:
return "LPG";
case FuelType.NG:
return "NG";
default:
throw new ArgumentOutOfRangeException("fuel type", ftype, null);
}
}
public static string ToXMLFormat(this FuelType ftype)
{
return ftype.GetLabel();
}
}
}
\ No newline at end of file
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