System.Runtime.Serialization.Json.TypeMap.IsInvalidNCName C# (CSharp) Method

IsInvalidNCName() static private method

static private IsInvalidNCName ( string name ) : bool
name string
return bool
		static bool IsInvalidNCName (string name)
		{
			if (name == null || name.Length == 0)
				return true;
			try {
				XmlConvert.VerifyNCName (name);
			} catch (XmlException) {
				return true;
			}
			return false;
		}