当前位置:编程学习 > C#/ASP.NET >>

新浪微博SDK .Net C# Demo 代码解释

下面红色字体的都是字符串,这是在 新浪微博SDK .Net C# Demo 程序里面的获取用户微博列表用的字符串,我根本看不懂它是什么意思,想添加些功能都不行,请问这是什么语言,可以的话我去学习一下语法.我想让微博列表中的微博呢称变成链接,可通过鼠标单击并跳转.出吃之外转发/评论等也一样,最好用户的微博信息(微博粉丝/关注/微博)等也能点击并跳转到相关的页面
 #region 微博列表的模板
        const string htmlPattern = @"<!DOCTYPE html>
<html lang=""en"" xmlns=""http://www.w3.org/1999/xhtml"">
<head>
<title></title>
<style type=""text/css"">
html, body {
font-size: 12px;
cursor: default;
padding: 5px;
margin: 0;
font-family:微软雅黑,Tahoma;
}

div.status {
padding-left: 60px;
position: relative;
margin-bottom: 10px;
min-height:80px;
_height:80px;
}

div.status p {
margin: 0 0 5px 0;
line-height: 1.5;
padding: 0;
}

div.status p span.name {
color: #369;                    
}

div.status p.status-content {
color: #333;
}

div.status p.status-count {
color:#999;
}

div.status .face {
position: absolute;
left: 0;
top: 0;
}

div.status div.repost {
border: solid 1px #ACD;
background: #F0FAFF;
padding: 10px 10px 0 10px;
}

div.repost p.repost-content {
color: #666 !important;
}
</style>
</head>
<body>
<!--StatusesList-->
</body>
</html>";        const string imageParttern = @"<img src=""{0}"" alt=""图片"" class=""inner-pic"" />";        const string statusPattern = @" <div class=""status"">
<img src=""{0}"" alt=""{1}"" class=""face"" />
<p class=""status-content""><span class=""name"">{1}</span>:{2}</p>
{3}
<p class=""status-count"">转发({4}) 评论({5})</p>
</div>
";
        const string repostPattern = @" <div class=""status"">
<img src=""{0}"" alt=""{1}"" class=""face"" />
<p class=""status-content""><span class=""name"">{1}</span>:{2}</p>
<div class=""repost"">
<p class=""repost-cotent""><span class=""name"">@{3}</span>:{4}</p>
{5}
<p class=""status-count"">转发({6}) 评论({7})</p>
</div>
<p class=""status-count"">转发({8}) 评论({9})</p>
</div>";
        #endregion 新浪微博 .net c# --------------------编程问答-------------------- 这个不是String.Format的占位符么。。。。。 --------------------编程问答-------------------- html呗............
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,