一个不错的Silverlight展示网站反编译后的源码和大家分享一下(http://www.microsoft.com/taiwan/student/Good.htm),很简单的
2010-08-16 18:12
1571 查看
只是微软的一个Silverlight展示网站。
涉及到的反编译知识:
一。关于Linq的IL
1. 源代码:
XmlReader reader = XmlReader.Create(new StringReader(e.Result));
XDocument document = XDocument.Load(reader);
var projects = from f in document.Descendants("mspData")
where (f.Attribute("expire").Value == this.expire_id.ToString())
select new mspDatas
{
expire = int.Parse(f.Attribute("expire").Value),
Name = f.Attribute("Name").Value,
nickName = f.Attribute("nickName").Value,
school = f.Attribute("school").Value,
email = f.Attribute("email").Value,
msn = f.Attribute("msn").Value,
blogTitle = f.Attribute("blogTitle").Value,
blogUrl = f.Attribute("blogUrl").Value,
imgFile = f.Attribute("imgFile").Value,
Introduce = f.Value
};
List<mspDatas> list = new List<mspDatas>();
list.AddRange(projects);
2.反编译后的代码:
if (CS$<>9__CachedAnonymousMethodDelegate5 == null)
{
CS$<>9__CachedAnonymousMethodDelegate5 = new Func<XElement, mspDatas>(null, (IntPtr) <client_DownloadStringCompleted>b__4);
}
IEnumerable<mspDatas> collection = Enumerable.Select<XElement, mspDatas>(Enumerable.Where<XElement>(XDocument.Load(XmlReader.Create(new StringReader(e.get_Result()))).Descendants("mspData"), new Func<XElement, bool>(this, (IntPtr) this.<client_DownloadStringCompleted>b__3)), CS$<>9__CachedAnonymousMethodDelegate5);
List<mspDatas> list = new List<mspDatas>();
list.AddRange(collection);
http://dev.firnow.com/course/4_webprogram/asp.net/asp_netxl/20100629/232110.html 此地址对Linq进行了讲解,有趣的朋友到此网站了解一些Linq的IL知识
二、[CompilerGenerated]自动生成属性属性
1.源代码
public int Pages { get; set; }
public bool IsPro { get; set; }
1.反编译后的代码:
[CompilerGenerated]
private bool <IsPro>k__BackingField;
[CompilerGenerated]
private int <Pages>k__BackingField;
public bool IsPro
{
[CompilerGenerated]
get
{
return this.<IsPro>k__BackingField;
}
[CompilerGenerated]
set
{
this.<IsPro>k__BackingField = value;
}
}
public int Pages
{
[CompilerGenerated]
get
{
return this.<Pages>k__BackingField;
}
[CompilerGenerated]
set
{
this.<Pages>k__BackingField = value;
}
}
三、 [DebuggerNonUserCode]属性来限制代码正在调试/步入
演示地址:http://www.microsoft.com/taiwan/student/Good.htm
源代码:http://files.cnblogs.com/salam/SlFrame.rar
涉及到的反编译知识:
一。关于Linq的IL
1. 源代码:
XmlReader reader = XmlReader.Create(new StringReader(e.Result));
XDocument document = XDocument.Load(reader);
var projects = from f in document.Descendants("mspData")
where (f.Attribute("expire").Value == this.expire_id.ToString())
select new mspDatas
{
expire = int.Parse(f.Attribute("expire").Value),
Name = f.Attribute("Name").Value,
nickName = f.Attribute("nickName").Value,
school = f.Attribute("school").Value,
email = f.Attribute("email").Value,
msn = f.Attribute("msn").Value,
blogTitle = f.Attribute("blogTitle").Value,
blogUrl = f.Attribute("blogUrl").Value,
imgFile = f.Attribute("imgFile").Value,
Introduce = f.Value
};
List<mspDatas> list = new List<mspDatas>();
list.AddRange(projects);
2.反编译后的代码:
if (CS$<>9__CachedAnonymousMethodDelegate5 == null)
{
CS$<>9__CachedAnonymousMethodDelegate5 = new Func<XElement, mspDatas>(null, (IntPtr) <client_DownloadStringCompleted>b__4);
}
IEnumerable<mspDatas> collection = Enumerable.Select<XElement, mspDatas>(Enumerable.Where<XElement>(XDocument.Load(XmlReader.Create(new StringReader(e.get_Result()))).Descendants("mspData"), new Func<XElement, bool>(this, (IntPtr) this.<client_DownloadStringCompleted>b__3)), CS$<>9__CachedAnonymousMethodDelegate5);
List<mspDatas> list = new List<mspDatas>();
list.AddRange(collection);
http://dev.firnow.com/course/4_webprogram/asp.net/asp_netxl/20100629/232110.html 此地址对Linq进行了讲解,有趣的朋友到此网站了解一些Linq的IL知识
二、[CompilerGenerated]自动生成属性属性
1.源代码
public int Pages { get; set; }
public bool IsPro { get; set; }
1.反编译后的代码:
[CompilerGenerated]
private bool <IsPro>k__BackingField;
[CompilerGenerated]
private int <Pages>k__BackingField;
public bool IsPro
{
[CompilerGenerated]
get
{
return this.<IsPro>k__BackingField;
}
[CompilerGenerated]
set
{
this.<IsPro>k__BackingField = value;
}
}
public int Pages
{
[CompilerGenerated]
get
{
return this.<Pages>k__BackingField;
}
[CompilerGenerated]
set
{
this.<Pages>k__BackingField = value;
}
}
三、 [DebuggerNonUserCode]属性来限制代码正在调试/步入
演示地址:http://www.microsoft.com/taiwan/student/Good.htm
源代码:http://files.cnblogs.com/salam/SlFrame.rar
相关文章推荐
- 分享一个网站:在线编译http://www.compileonline.com/
- 一个不错的网站,颜色推荐 http://www.colorhexa.com/
- http://www.codeplex.com/ 一个不错的开源网站
- 一个学习编程技术的好网站-http://www.tutorialspoint.com/index.htm
- 连接access数据库-----来自一个不错的网站:http://www.connectionstrings.com/
- 推荐一个WSS学习的好网站:http://wss.collutions.com and Http://www.wssdemo.com,本人决没有做广告的意思,只是觉得上面的东西不错。
- 一个很好的编程学习网站(电子书,教程,经验分享等等):http://www.ccrun.com/index.asp
- 给大家推荐一个python的学习网站 http://www.codecademy.com
- 给大家推荐一个python的学习网站 http://www.codecademy.com
- 给大家推荐一个python的学习网站 http://www.codecademy.com
- 想制作一个网络游戏的网站,大家有什么好的意见没有。http://www.flexkf.com网站开始建立,但是没有什么内容
- 分享一个非常不错的.net论坛,http://bbs.netluntan.com
- 一个不错的英语学习博客: http://www.eslbackpack.com/
- 一个国外的UI设计网站http://www.smileycat.com/design_elem...
- 学习Swing和java不错的网站 强烈推荐http://www.javaworld.com/
- 一个不错的技术视频学习网站:http://bbs.langsin.com/index.php?fromuid=58264
- 一个各学校就业分析、各公司待遇和发展前景的好网站,跟大家分享一下
- 给大家展示一个简单的silverlight个人网站模版
- 推荐一个提供Web Service的网站 http://www.webxml.com.cn
- 主题:免费的论文查重网站 正文:给大家推荐一个免费的论文查重网站PaperFree:http://www.paperfree.cn