20
1
using System;
2
3
namespace Bool
4
{
5
public class Program
6
{
7
public static void Main(string[] args)
8
{
9
Console.WriteLine(Convert.ToBoolean(10));
10
Console.WriteLine(Convert.ToBoolean(0));
11
Console.WriteLine(Convert.ToBoolean(-120));
12
Console.WriteLine(Convert.ToBoolean(0));
13
14
Console.WriteLine(Convert.ToBoolean(System.Boolean.TrueString));
15
Console.WriteLine(Convert.ToBoolean(System.Boolean.FalseString));
16
17
Console.ReadLine();
18
}
19
}
20
}
Cached Result
OrderID | Number | TotalAmount | CreatedDate | IsActive | Items |
---|---|---|---|---|---|
1 | Order #1 | 1199.0000000000000000000 | 04/23/2025 07:41:33 | True | |
2 | Order #2 | 2098.0000000000000000000 | 04/23/2025 07:41:33 | True |
OrderItemID | OrderID | ItemName | Quantity | Price |
---|---|---|---|---|
1 | 1 | Dapper Plus | 4 | 1199.0000000000000000000 |
2 | 2 | Entity Framework Extensions | 9 | 1399.0000000000000000000 |
3 | 2 | C# Eval Expression | 9 | 699.0000000000000000000 |