Sorry for the noob question... C# is new to me.
(And reaching for basic stuff in the framework and finding it missing is a little disorienting.)
The question:
On the 4.1 .NET Micro Framework, how do I implement ToInt32(string), since the native .net micro framework lacks these conversion functions?
Thank you !
The .NET Micro Framework (at least, version 3.0 and above) has an
Int32.Parsemethod which will do what you want: convert a string representation of a number into the actual integer equivalent.The documentation for that method is here.
Call it like this:
But it looks like the .NET Micro Framework (again, version 3.0 and above) also provides the
Convertclass, including various overloads of methods such asToInt32andToDouble, so I'm not really sure what the problem is and why you say that it "lacks these conversion functions". Which ones are missing?