Microsoft.Protocols.TestSuites.Common.ActiveSyncClient.ReadXsdFile C# (CSharp) Method

ReadXsdFile() private static method

Read the xsd file content
private static ReadXsdFile ( string fileName ) : string
fileName string Specific the XSD file path
return string
        private static string ReadXsdFile(string fileName)
        {
            FileStream fs = null;
            try
            {
                fs = File.OpenRead(fileName);
                using (StreamReader sr = new StreamReader(fs))
                {
                    return sr.ReadToEnd();
                }
            }
            finally
            {
                if (fs != null)
                {
                    fs.Dispose();
                }
            }
        }