File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
nanoFramework.CoreLibrary/System Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1414[ assembly: AssemblyProduct ( "nanoFramework mscorlib" ) ]
1515[ assembly: AssemblyCopyright ( "Copyright (c) .NET Foundation and Contributors" ) ]
1616
17- [ assembly: AssemblyNativeVersion ( "100.5.0.0 " ) ]
17+ [ assembly: AssemblyNativeVersion ( "100.5.0.1 " ) ]
Original file line number Diff line number Diff line change @@ -36,6 +36,15 @@ public static class Convert
3636
3737 [ MethodImpl ( MethodImplOptions . InternalCall ) ]
3838 private static extern double NativeToDouble ( string value ) ;
39+ /// <summary>
40+ /// Converts the value of the specified 8-bit unsigned integer to an equivalent Boolean value.
41+ /// </summary>
42+ /// <param name="value">The 8-bit unsigned integer to convert.</param>
43+ /// <returns><see langword="true"/> if <paramref name="value"/> is not zero; otherwise, <see langword="false"/>.</returns>
44+ public static bool ToBoolean ( byte value )
45+ {
46+ return value != 0 ;
47+ }
3948
4049 /// <summary>
4150 /// Converts the value of the specified 16-bit unsigned integer to its equivalent Unicode character.
You can’t perform that action at this time.
0 commit comments