When communication with external device like through Serial Comm port, you might need to use byte array to do so. In .NET, The BitConverter class provides an overloaded static method GetBytes that take most of the standard value types and return the value encoded as an array of bytes. Support is provided for the bool, char, double, short, int, long, float, ushort, uint, and ulong data types. BitConverter also provides a set of static methods that support the conversion of byte arrays to each of the standard value types; these are named ToBoolean, ToUInt32, ToDouble, and so on. The following snippet demonstrates the use of BitConverter to convert a bool and an int to and from a byte array. The second argument to each of the ToBoolean and ToInt32 methods is a zero-based offset into the byte array where the BitConverter should start taking the bytes to create the data value. Read the rest of this entry »
Popularity: 3% [?]
It was one of my experience in leading a team to create a multiskin mobile application. How do we do it? We don’t use the Mobile Control which is provided in .NET Framework, instead we use the XML to XHTML using XSLT approach. XSLT really come to handy when you need to do some transformation on XML data Read the rest of this entry »
Popularity: 2% [?]