コード例 #1
0
        public static TXmlType RunGetXmlType <TXmlType>(FilePath svnExecutableFilePath, IArgumentsBuilder argumentsBuilder, bool throwIfAnyError = true)
        {
            var xmlText = SvnCommandServicesProvider.RunGetXmlText(svnExecutableFilePath, argumentsBuilder, throwIfAnyError);

            using (var stream = StreamHelper.FromString(xmlText))
            {
                var xmlType = XmlStreamSerializer.Deserialize <TXmlType>(stream, SvnXml.DefaultNamespace);
                return(xmlType);
            }
        }