1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 02:25:41 +00:00

🔨 Cast result instead of literals ToByte()

This commit is contained in:
Oliver Booth 2020-04-18 23:30:09 +01:00
parent e7bf572d09
commit 6be765a92d
No known key found for this signature in database
GPG Key ID: 0D7F2EF1C8D2B9C0

View File

@ -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>