Dev2.Activities.Designers2.Core.QuickVariableInput.QuickVariableInputViewModel.IsValidName C# (CSharp) Method

IsValidName() static private method

static private IsValidName ( string value ) : bool
value string
return bool
        static bool IsValidName(string value)
        {
            if(!string.IsNullOrWhiteSpace(value) && !value.Contains("."))
            {
                try
                {
                    XmlConvert.VerifyName(value);
                    return true;
                }
                catch(Exception)
                {
                    return false;
                }
            }
            return false;
        }