Which code segment is used to display all currencies in the format used by Egypt?

You are busy to develop a Microsoft Windows Forms application that has localized resources for the
Arabic language.
Which code segment is used to display all currencies in the format used by Egypt?

You are busy to develop a Microsoft Windows Forms application that has localized resources for the
Arabic language.
Which code segment is used to display all currencies in the format used by Egypt?

A.
Thread.CurrentThread.CurrentUICulture = new CultureInfo["ar"];

B.
Thread.CurrentThread.CurrentCulture = new CultureInfo["ar"];

C.
Thread.CurrentThread.CurrentUICulture = new CultureInfo["ar-EG"];

D.
Thread.CurrentThread.CurrentCulture = new CultureInfo["ar-EG"];

Explanation:
The CurrentCulture property specifies the culture to use for formatting numbers, currencies, dates, and time. The culture ar-EG is for the Arabic language inEgypt.

Incorrect Answers:
A, B, C: The CurrentUICulture identifies the culture to be used by a resource manager, which load localized resources. Furthermore, you should not specify the ar to the constructure of CultureInfo. The ar value represents a neutral for the Arabic language.



Leave a Reply 0

Your email address will not be published. Required fields are marked *