bool To Yes No - CSharp System

CSharp examples for System:Boolean

Description

bool To Yes No

Demo Code



public class Main{
        public static string ToYesNo(this bool value) {
            return value ? "Yes" : "No";
        }//from   www  .  j  av  a2 s. c om
}

Related Tutorials