Parse() публичный статический Метод

Parse the given XML and return Changeset objects for the information contained in it, ordered in descending order by the revision numbers (ie. latest changeset first.)
/// An unknown path action character was detected in the log output. ///
public static Parse ( string xml ) : Changeset[]
xml string /// The XML to parse. ///
Результат Changeset[]
Пример #1
0
 /// <summary>
 /// This method should parse and store the appropriate execution result output
 /// according to the type of data the command line client would return for
 /// the command.
 /// </summary>
 /// <param name="exitCode">
 /// The exit code from executing the command line client.
 /// </param>
 /// <param name="standardOutput">
 /// The standard output from executing the command line client.
 /// </param>
 /// <remarks>
 /// Note that as long as you descend from <see cref="MercurialCommandBase{T}"/> you're not required to call
 /// the base method at all.
 /// </remarks>
 protected override void ParseStandardOutputForResults(int exitCode, string standardOutput)
 {
     Result = ChangesetXmlParser.Parse(standardOutput);
 }
Пример #2
0
 /// <summary>
 /// This method should parse and store the appropriate execution result output
 /// according to the type of data the command line client would return for
 /// the command.
 /// </summary>
 /// <param name="exitCode">
 /// The exit code from executing the command line client.
 /// </param>
 /// <param name="standardOutput">
 /// The standard output from executing the command line client.
 /// </param>
 /// <remarks>
 /// Note that as long as you descend from <see cref="MercurialCommandBase{T}"/> you're not required to call
 /// the base method at all.
 /// </remarks>
 protected override void ParseStandardOutputForResults(int exitCode, string standardOutput)
 {
     base.ParseStandardOutputForResults(exitCode, standardOutput);
     Result = ChangesetXmlParser.Parse(standardOutput).FirstOrDefault();
 }