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

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

substitute cast, use culture-independent parsing

parent 6ba77005
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@
'
' See the LICENSE.txt for the specific language governing permissions and limitations.
Imports System.Globalization
Imports System.IO
Namespace Pneumatics
......@@ -78,7 +79,7 @@ Namespace Pneumatics
'Should throw exception if ConsumerName or CycleName are empty.
newKey = New ActuationsKey(elements(0).ToString(), elements(1).ToString())
map.Add(newKey, CType(elements(2), Single))
map.Add(newKey, Single.Parse(elements(2), CultureInfo.InvariantCulture))
Else
firstline = False
......
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