System.Xml.XmlEntity.IsValidChildType C# (CSharp) Method

IsValidChildType() private method

private IsValidChildType ( System.Xml.XmlNodeType type ) : bool
type System.Xml.XmlNodeType
return bool
        internal override bool IsValidChildType( XmlNodeType type ) {
            return(type == XmlNodeType.Text ||
                   type == XmlNodeType.Element ||
                   type == XmlNodeType.ProcessingInstruction ||
                   type == XmlNodeType.Comment ||
                   type == XmlNodeType.CDATA ||
                   type == XmlNodeType.Whitespace ||
                   type == XmlNodeType.SignificantWhitespace ||
                   type == XmlNodeType.EntityReference);
        }