Fungus.Character.NameStartsWith C# (CSharp) Method

NameStartsWith() public method

Returns true if the character name starts with the specified string. Case insensitive.
public NameStartsWith ( string matchString ) : bool
matchString string
return bool
        public virtual bool NameStartsWith(string matchString)
        {
#if NETFX_CORE
            return name.StartsWith(matchString, StringComparison.CurrentCultureIgnoreCase)
                || nameText.StartsWith(matchString, StringComparison.CurrentCultureIgnoreCase);
#else
            return name.StartsWith(matchString, true, System.Globalization.CultureInfo.CurrentCulture)
                || nameText.StartsWith(matchString, true, System.Globalization.CultureInfo.CurrentCulture);
#endif
        }