System.Xml.Tests.AsyncReaderLateInitTests.ReadAsyncAfterInitializationWithTextReaderDoesNotThrow C# (CSharp) Méthode

ReadAsyncAfterInitializationWithTextReaderDoesNotThrow() private méthode

private ReadAsyncAfterInitializationWithTextReaderDoesNotThrow ( ) : void
Résultat void
        public static void ReadAsyncAfterInitializationWithTextReaderDoesNotThrow()
        {
            using (XmlReader reader = XmlReader.Create(GetDummyXmlTextReader(), new XmlReaderSettings() { Async = true }))
            {
                reader.ReadAsync().Wait();
            }
        }