本文整理匯總了C#中System.Int32.ConvertFromUtf32方法的典型用法代碼示例。如果您正苦於以下問題:C# Int32.ConvertFromUtf32方法的具體用法?C# Int32.ConvertFromUtf32怎麽用?C# Int32.ConvertFromUtf32使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Int32
的用法示例。
在下文中一共展示了Int32.ConvertFromUtf32方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Convert
/// <summary>
/// Converts a given number into its unicode character.
/// </summary>
/// <param name="code">The code to convert.</param>
/// <returns>The array containing the character.</returns>
static String Convert(Int32 code)
{
return code.ConvertFromUtf32();
}
示例2: Convert
/// <summary>
/// Converts a set of two numbers into their unicode characters.
/// </summary>
/// <param name="leadingCode">The first (leading) character code.</param>
/// <param name="trailingCode">The second (trailing) character code.</param>
/// <returns>The array containing the two characters.</returns>
public static String Convert(Int32 leadingCode, Int32 trailingCode)
{
return leadingCode.ConvertFromUtf32() + trailingCode.ConvertFromUtf32();
}