mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 02:45:41 +00:00
🔨 Cast result instead of literals ToByte()
This commit is contained in:
parent
e7bf572d09
commit
6be765a92d
@ -81,7 +81,7 @@
|
|||||||
/// <returns>Returns 00000001 if <paramref name="value"/> is <see langword="true"/>, otherwise 0000000.</returns>
|
/// <returns>Returns 00000001 if <paramref name="value"/> is <see langword="true"/>, otherwise 0000000.</returns>
|
||||||
public static byte ToByte(this bool value)
|
public static byte ToByte(this bool value)
|
||||||
{
|
{
|
||||||
return value ? (byte)1 : (byte)0;
|
return (byte)(value ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user