System.Xml.Schema.DtdValidator.MeetsStandAloneConstraint C# (CSharp) Method

MeetsStandAloneConstraint() private method

private MeetsStandAloneConstraint ( ) : bool
return bool
        private bool MeetsStandAloneConstraint() {
            if (reader.StandAlone &&                  // VC 1 - iv
                 context.ElementDecl != null &&
                 context.ElementDecl.IsDeclaredInExternal && 
                 context.ElementDecl.ContentValidator.ContentType == XmlSchemaContentType.ElementOnly) {
                 SendValidationEvent(Res.Sch_StandAlone);
                 return false;
            }
            return true;
        }