Jayrock.Json.Conversion.Converters.TestNameValueCollectionImporter.UncheckedImport C# (CSharp) Method

UncheckedImport() private static method

private static UncheckedImport ( string s ) : NameValueCollection
s string
return System.Collections.Specialized.NameValueCollection
        private static NameValueCollection UncheckedImport(string s)
        {
            JsonReader reader = new JsonTextReader(new StringReader(s));
            IImporter importer = new NameValueCollectionImporter();
            NameValueCollection import = (NameValueCollection) importer.Import(new ImportContext(), reader);
            Assert.IsTrue(reader.EOF, "Reader must be at EOF.");
            return import;
        }