Load() private method

private Load ( [ path ) : SignedFeed
path [
return SignedFeed
示例#1
0
 /// <summary>
 /// Loads a feed from an XML file (feed).
 /// </summary>
 /// <param name="path">The file to load from.</param>
 /// <returns>A <see cref="FeedEditing"/> containing the loaded feed.</returns>
 /// <exception cref="IOException">A problem occurred while reading the file.</exception>
 /// <exception cref="UnauthorizedAccessException">Read access to the file is not permitted.</exception>
 /// <exception cref="InvalidDataException">A problem occurred while deserializing the XML data.</exception>
 public new static FeedEditing Load(string path)
 => new FeedEditing(SignedFeed.Load(path))
 {
     Path = path
 };
示例#2
0
 public static FeedEditing Load([NotNull] string path)
 {
     return(new FeedEditing(SignedFeed.Load(path), path));
 }