CSharp - Data Types Boolean Type

Introduction

C#'s bool type is aliasing the System.Boolean type.

bool type is a logical value that can be assigned the literal true or false.

true and false are the only two literals for bool type

Bool Conversions

You cannot cast from the bool type to numeric types or vice versa.

Exercise