enum Gender { male, female } class Program { static void Main(string[] args) { Gender M = Gender.male; M = 0; // Gender F = Gender.female; F = 1; // this wrong statement , must be implicitly cast } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)