Is there any way to determine text direction from CultureInfo in asp.net?

C#asp.netLocalization

C# Problem Overview


I have looked around, but I have been unable to figure this out, some languages are read and written from right to left, instead of left to right. It seems like a no-brainer to be able to get the text direction from the CultureInfo object somehow, but I have not seen it anywhere. Am I missing something?

C# Solutions


Solution 1 - C#

System.Globalization.CultureInfo.CurrentCulture.TextInfo.IsRightToLeft

This will return true if the current culture is read from right to left.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionChris MullinsView Question on Stackoverflow
Solution 1 - C#John SaundersView Answer on Stackoverflow