随笔分类 - .NET Technology
Introduce .NET technology, or .NET related technologies.
摘要:最近带着几个在做一个项目,UI层面用的是WPF。之前很少深入的接触WPF,不过接触后,发现WPF的却是很强大。至少在界面设计上的用户体验较WinForm有了大幅提升。项目中需要通用化几个样式,并将样式赋值给相应的控件。控件是根据配置文件动态生成的,配置文件是xml格式的层次化较多的结构。所以在动态生成的过程中采用了递归的方式来实现。下面是一个模拟实例。目标:将程序集“PresentationFramework"的所有类型添加到TreeView里面,如果一个类型存在基类行,那么先加入基类型,以此类推。实践:1. 创建一个WPF应用程序,添加一个xml文件,放在工程的根目录下即可。(不用
阅读全文
摘要:更新内容。最终的问题还是SMTP服务器不正确引起的,而非telnet。另外,不在同一个domain的两个机器相互沟通需要使用全名,可以通过ping -4 <hostname>获得。-----------------------------------------------------------------------最近在写一个应用程序,但是stuck在发送邮件的地方。提示错误信息是unable to connect remove server。一开始以为是smtp的服务器地址写错了,上网搜索了很多内容,各种方法都尝试,却也没有解决我的问题。不过还好,在某某论坛上看到了用tel
阅读全文
摘要:前言前今天,在一次Resource Transfer的会议结尾,有人无意中提到了关于Async的问题,很多人知道有这个概念,但具体是什么,什么时候使用,如何使用,为什么要使用等等却不得而知,甚至有人建议找个技术不错的做个Training。想想,自己也有点悲哀的地方,毕竟之前一直关注技术,接触管理久了,就离技术越来越远了;尤其听着新鲜的东西,自己不会,确实觉得面子有些挂不住,这么长时间,也确实很久没有耐心的学习技术,心里也觉得缺了点什么。或许是因为缺少了学习技术带了的乐趣,或是没有技术少了那么一点成就感,亦或是怕被技术甩得太远跟不上时代的步伐,总之还是让自己活在“饥饿”中吧。有句话说的好,好么赶
阅读全文
摘要:Boxing and UnboxingMost of us have the knowledge about "Boxing" and "Unboxing".For "Boxing" means convert value type to reference type.For "Unboxing" means convert reference type to value.More deeper,1. For Boxing, CLR did three things in briefly, (1) Allocate a heap memory. (2) Copy the value to he
阅读全文
摘要:Recently, I noticed a strange behavior for looking up name of Extension Method in VB and C#.That is, if you overwrite a method or a property by using extension, your extension will not displayed for IDE IntelliSense.But if you declared a new generic method, you will notice a small difference.1. Over
阅读全文
摘要:Recently, I was asked what a “Strong Name” is? And why we need a signed build?Now, I’m going to talk about this concept, not only because I was asked, but also we had the “Stro...
阅读全文
摘要:Exception: AV = Access Voilation.Call Stack:> 33257074() mswsock.dll!74bb281b() [Frames below may be incorrect and/or missing, no symbols loaded for mswsock.dll] ntdll.dll!76f05d3d() ntdll.dll!...
阅读全文
摘要:Introduced how to auto manipulate the controls(tags) in webbrowser control, and a way to handle WebBrowser.Document is null issue.
阅读全文
摘要:Introduced how to declare variable, function, etc.
阅读全文
摘要:Simply introduced how to create a FSharp project.
阅读全文
摘要:Most of us may rarely using F# for our daily work. And since F# released, now it’s open source under Apach license. And some of you guys may want to have try, but do not want to try the amazing ...
阅读全文

浙公网安备 33010602011771号