Indicates whether the specified object is a high surrogate. - CSharp System

CSharp examples for System:Char Unicode

Description

Indicates whether the specified object is a high surrogate.

Demo Code

// Licensed under MIT License (MIT) (https://github.com/zzzprojects/Z.ExtensionMethods)
using System;/*from www .  ja v  a 2s.  c om*/

public class Main{
        /// <summary>
    ///     Indicates whether the specified  object is a high surrogate.
    /// </summary>
    /// <param name="c">The Unicode character to evaluate.</param>
    /// <returns>
    ///     true if the numeric value of the  parameter ranges from U+D800 through U+DBFF; otherwise, false.
    /// </returns>
    public static Boolean IsHighSurrogate(this Char c)
    {
        return Char.IsHighSurrogate(c);
    }
}

Related Tutorials