System.Globalization.TextInfo.ToUpper C# (CSharp) Method

ToUpper() public method

public ToUpper ( String str ) : String
str String
return String
        public unsafe virtual String ToUpper(String str) 
        {
            if (str == null) { throw new ArgumentNullException("str"); }
            
            return (nativeChangeCaseString(m_textInfoID, m_pNativeTextInfo, str, true));
        }

Same methods

TextInfo::ToUpper ( char c ) : char

Usage Example

    public void MessageInfo(string LabelInfo, int TypeInfo)
    {
        LeanTween.scale(gameObject, Vector3.one, 0f);

        System.Globalization.CultureInfo cultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture;
        System.Globalization.TextInfo    textInfo    = cultureInfo.TextInfo;

        Label.text = textInfo.ToUpper(LabelInfo);
        switch (TypeInfo)
        {
        case 1: Btn3.gameObject.SetActive(false); Btn2.gameObject.SetActive(true); break;

        case 2: Btn2.gameObject.SetActive(false); Btn3.gameObject.SetActive(false); break;

        default: Btn2.gameObject.SetActive(true); Btn3.gameObject.SetActive(true); break;
        }
    }
All Usage Examples Of System.Globalization.TextInfo::ToUpper