Horje
c# bool to int Code Example
c# bool to int
bool t = true;
bool f = false;

var a = Unsafe.As<bool, int>(ref t);
var b = Unsafe.As<bool, int>(ref f);

Console.WriteLine(a); // 1
Console.WriteLine(b); // 0
int to bool c#
int i = 0;
bool b = Convert.ToBoolean(i);




Csharp

Related
C# HttpClient POST request Code Example C# HttpClient POST request Code Example
C# how to ignore case Code Example C# how to ignore case Code Example
how to close and reopen an app in c# Code Example how to close and reopen an app in c# Code Example
get working directory c# Code Example get working directory c# Code Example
c# restart app Code Example c# restart app Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9