src/Misc/EFTools/XmlCore/Model/Validation/AttributeContentValidator.cs
/// <summary>
///     Validates a proposed string against a given "path" to a node.
/// </summary>
/// <param name="proposedString"></param>
/// <param name="attributePath"></param>
/// <returns></returns>
Validates a proposed string against a given "path" to a node.
Validates a proposed string against a given " path " to a node .
internal bool IsValidStringForSchemaType(string proposedString, AttributePath attributePath)
        {
            var type = GetTypeNameForNode(attributePath);
            if (type == null)
            {
                Debug.Fail("didn't find XmlSchemaType for given attribute path");
                return false;
            }
            else
            {
                return IsValidStringForSchemaType(proposedString, type.QualifiedName);
            }
        }
internal bool IsValidStringForSchemaType ( string proposedString , AttributePath attributePath ) { var type = GetTypeNameForNode ( attributePath ) ; if ( type == null ) { Debug . Fail ( " " ) ; return false ; } else { return IsValidStringForSchemaType ( proposedString , type . QualifiedName ) ; } }
Validates a proposed string against a given "path" to a node.
Validates a proposed string against a given " path " to a node .
None
proposedString
string
None
attributePath
AttributePath
None