Here are simple code, extension method in order to translate a yes/no (Y/N) value read somewhere to a boolean.
public static class YesNoToBoolExtension { public static bool YesNotoBool(this string source) { return source.ToUpper() == "Y"||source.ToUpper()=="Yes"; } public static bool YesNotoBool(this char source) { return char.ToUpper(source) == 'Y'; } }
Good work ;-)
شركة تسليك مجارى بجازان
RépondreSupprimerشركة كشف تسربات بالباحة
شركة كشف تسربات بينبع
شركة تسليك مجارى بابها
شركة مكافحة حشرات بابها
RépondreSupprimerشركة مكافحة حشرات بخميس مشيط
شركة تسليك مجاري بخميس مشيط
شركة تسليك مجاري بابها
شركة تنظيف مجالس بابها
شركة تنظيف مجالس بخميس مشيط