Feeds/FeedHelper.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Syndication;
using System.Xml;
using System.IO;
namespace ComLib.Feeds
{
/// <summary>
/// Feed format.
/// </summary>
public enum FeedFormat
{
/// <summary>
/// Atom syndication format.
/// </summary>
Atom,
/// <summary>
/// Rss syndication format
/// </summary>
Rss
}
/// <summary>
///
/// </summary>
public struct FeedFormatDocType
{
/// <summary>
/// Document type for rss
/// </summary>
public const String Rss20 = "application/rss+xml";
/// <summary>
/// Document type for atom
/// </summary>
public const String Atom10 = "application/atom+xml";
}
/// <summary>
/// Helper class for reading/writing feeds.
/// </summary>
public static class FeedHelper
{
/// <summary>
/// Load a syndication from the specified url.
/// </summary>
/// <param name="url"></param>
/// <returns></returns>
public static SyndicationFeed LoadUrl(String url)
{
后面还有 145 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
