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

Skip to content
Snippets Groups Projects
Commit 4b78954b authored by Harald MARTINI's avatar Harald MARTINI
Browse files

added isGaseous extension method to fueltype

parent 1f087e1f
No related branches found
No related tags found
No related merge requests found
......@@ -74,5 +74,16 @@ namespace TUGraz.VectoCommon.Models
{
return ftype.GetLabel();
}
public static bool IsGaseous(this FuelType ftype)
{
switch (ftype) {
case (FuelType.NGPI):
case (FuelType.NGCI):
return true;
default:
return false;
}
}
}
}
\ 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