System.Xml.Tests.TC_SchemaSet_ProhibitDTD.GetSettings C# (CSharp) Method

GetSettings() private method

private GetSettings ( bool prohibitDtd ) : XmlReaderSettings
prohibitDtd bool
return System.Xml.XmlReaderSettings
        private XmlReaderSettings GetSettings(bool prohibitDtd)
        {
            return new XmlReaderSettings
            {
#pragma warning disable 0618
                ProhibitDtd = prohibitDtd,
#pragma warning restore 0618
                XmlResolver = new XmlUrlResolver()
            };
        }