Question:You are developing an application for a client residing in Hong Kong. You need to display negative currency values by using a minus sign. Which code segment should you use? 

A CultureInfo culture =
new CultureInfo("zh-HK");
return numberToPrint.ToString("-(0)", culture); 

B NumberFormatInfo culture =
new CultureInfo("zh-HK").NumberFormat; culture.
"A Composite Solution With Just One Click" - Certification Guaranteed 247 Microsoft 70-536 Exam CurrencyNegativePattern = 1;
return numberToPrint.ToString("C", culture); 

C CultureInfo culture =
new CultureInfo("zh-HK");
return numberToPrint.ToString("()", culture); 

D NumberFormatInfo culture =
new CultureInfo("zh-HK").NumberFormat;
culture.NumberNegativePattern = 1;
return numberToPrint.ToString("C", culture); 

+ Answer
+ Report
Total Preview: 749

Copyright © 2024. Powered by Intellect Software Ltd