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 14
14
[ assembly: AssemblyProduct ( "nanoFramework mscorlib" ) ]
15
15
[ assembly: AssemblyCopyright ( "Copyright (c) .NET Foundation and Contributors" ) ]
16
16
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
36
36
37
37
[ MethodImpl ( MethodImplOptions . InternalCall ) ]
38
38
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
+ }
39
48
40
49
/// <summary>
41
50
/// 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