src/Inedo.UPack/UniversalPackageId.cs
/// <summary>
/// Returns a value indicating whether the specified string is a valid upack name.
/// </summary>
/// <param name="s">String to test.</param>
/// <returns>True if string can be used as a name; otherwise false.</returns>
Returns a value indicating whether the specified string is a valid upack name.
Returns a value indicating whether the specified string is a valid upack name .
public static bool IsValidName(string s)
        {
            if (string.IsNullOrEmpty(s))
                return true;
            if (!NameRegex.IsMatch(s))
                return false;
            return true;
        }
public static bool IsValidName ( string s ) { if ( string . IsNullOrEmpty ( s ) ) return true ; if ( ! NameRegex . IsMatch ( s ) ) return false ; return true ; }
Returns a value indicating whether the specified string is a valid upack name.
Returns a value indicating whether the specified string is a valid upack name .
True if string can be used as a name; otherwise false.
True if string can be used as a name ; otherwise false .
s
string
String to test.
String to test .