随笔分类 -  C#

摘要:Despite what a lot of people believe, it's easy to introduce memory and resources leaks in .NET applications. The Garbage Collector, or GC for close f... 阅读全文
posted @ 2014-10-31 09:31 东风125 阅读(358) 评论(0) 推荐(1)
摘要:Caching large objects, duplicate objects, caching collections, live objects, thread unsafe caching and other common mistakes break your app instead of... 阅读全文
posted @ 2014-10-31 09:01 东风125 阅读(168) 评论(0) 推荐(0)
摘要:Namespace:System.DiagnosticsAssembly:System(in System.dll)SyntaxC#C++F#VB[BrowsableAttribute(false)]publicStreamReaderStandardOutput { get; }Property ... 阅读全文
posted @ 2014-10-30 16:55 东风125 阅读(941) 评论(0) 推荐(0)
摘要:Framework is platform containing a huge library of types, methods, classes, etc., cataloged into namespaces. But it is not ending here. With each new ... 阅读全文
posted @ 2014-10-27 21:03 东风125 阅读(200) 评论(0) 推荐(0)
摘要:研究] 常用 Microsoft .NET Framework 各版本下載網址列表2014-05-23僅列常用的 (IA64, Beta, hotfix, ... 不列)Microsoft .NET Framework 1.0Microsoft .NET Framework Redistributa... 阅读全文
posted @ 2014-10-27 17:07 东风125 阅读(518) 评论(0) 推荐(0)
摘要:SqlBulkCopy.WriteToServer has 4 overloads:SqlBulkCopy.WriteToServer (DataRow[]) Copies all rows from the supplied DataRow array to a destination table... 阅读全文
posted @ 2014-10-22 09:20 东风125 阅读(429) 评论(0) 推荐(0)
摘要:A while back, I posted a list ofASP.NET Interview Questions.Conventional wisdomwas split, with about half the folks saying I was nuts and that it was ... 阅读全文
posted @ 2014-10-20 09:05 东风125 阅读(186) 评论(0) 推荐(0)
摘要:My current project requires a lot of work with Deep Zoom images. We recently received some very high-res photos, around 500M tiff files, some of which... 阅读全文
posted @ 2014-10-17 14:41 东风125 阅读(219) 评论(0) 推荐(0)
摘要:Inside Deep Zoom –Part II: Mathematical AnalysisWelcome to part two ofInside Deep Zoom. Inpart one, I talked about the very basic ideas behind Deep Zo... 阅读全文
posted @ 2014-10-17 13:12 东风125 阅读(426) 评论(0) 推荐(0)
摘要:Here’s a little time saver. I sort of have a routine that I go through when I create a new WPF project. One of those things is to create a resource di... 阅读全文
posted @ 2014-10-15 09:17 东风125 阅读(242) 评论(0) 推荐(0)
摘要:1. Attached Property bound to task state. Any change will dynamically set data template.2. Visual State ManagerADataTemplateSelectordoes not respond t... 阅读全文
posted @ 2014-10-15 09:11 东风125 阅读(239) 评论(0) 推荐(0)
摘要:There are a couple of ways in WPF to make an image pop out when moving mouse over it. Of course we want the image to pop out smoothly, so in this quic... 阅读全文
posted @ 2014-10-14 08:23 东风125 阅读(474) 评论(0) 推荐(0)
摘要:1 sing System.Linq; 2 using System.Printing; 3 using System.Windows; 4 using System.Windows.Controls; 5 using System.Windows.Documents; 6 ... 阅读全文
posted @ 2014-10-14 08:18 东风125 阅读(529) 评论(0) 推荐(0)
摘要:Technorati Tags:wpf,thumbnails,image,performance,slow,BitmapImageDuring a recent WPF session I needed to build a ListBox that showed a bunch of images... 阅读全文
posted @ 2014-10-09 22:43 东风125 阅读(455) 评论(0) 推荐(0)
摘要:his article will help you to know which .NET Framework version is installed from command line.Check which .NET Framework version is installed from com... 阅读全文
posted @ 2014-09-11 16:44 东风125 阅读(701) 评论(0) 推荐(0)
摘要:WPF+MVVM的本地桌面程序为背景,这样一来我们可以不去操心服务器那部分的事情,更加专注我们的MVVM。我打算把最重要的部分放到开头来讲,而接下来这最重要的部分却是全篇教程唯一没有代码的部分。好,下面开始。MVVM不是什么框架,也不是什么代码生成器,它其实就是一种建议而已。很多朋友对于这个词很困惑:到底我怎么样做,我的程序才是一个标准的MVVM模式?其实我们没有必要去纠结中一点,因为(至少我)还没有见到任何一个程序能实现100%的MVVM。所以我们需要做的是,理解MVVM,然后采用MVVM的思想+现成的框架去搭建出一个程序即可,至于是不是标准的MVVM,不要过分去纠结。我看到过一些失败的例子 阅读全文
posted @ 2013-12-03 16:53 东风125 阅读(508) 评论(0) 推荐(0)
摘要:本分步指南演示如何在 ASP.NET 应用程序如何使用窗体身份验证允许用户使用轻型目录访问协议 (LDAP),对 Active Directory 进行验证。经过身份验证的用户重定向之后,可以使用Application_AuthenticateRequest方法的 Global.asax 文件流动在整个请求的HttpContext.User属性中存储绎对象。在 Visual C#.NET 创建 ASP.NET Web 应用程序请按照以下步骤创建新的 ASP.NET Web 应用程序名为 FormsAuthAd Visual C#.NET 中:启动 Microsoft Visual Studio 阅读全文
posted @ 2013-10-23 14:15 东风125 阅读(740) 评论(0) 推荐(0)
摘要:public static void LeastSquaresFitLogOrdinate(MultiPointsList points, int numPoints, ref double M, ref double B) { //Gives best fit of data to curve Y = B*(10^M)^X double x1, y1, xy, x2, J, LY; int i; x1 = 0.0; y1 = 0.0; xy =... 阅读全文
posted @ 2013-02-17 10:37 东风125 阅读(279) 评论(0) 推荐(0)
摘要:一直很奇怪C#的预定义数据类型中为什么加了一个decimal,有float和double不就够了吗?今天来挖一挖。浮点型NameCTS TypeDescriptionSignificant FiguresRange (approximate)floatSystem.Single32-bit single-precision floating point7±1.5 × 10−45to ±3.4 × 1038doubleSystem.Double64-bit double-precision floating point15/16±5.0  阅读全文
posted @ 2013-01-24 14:15 东风125 阅读(325) 评论(0) 推荐(0)
摘要:C#3.0后语言特性:自动属性(AutomaticProperties)如果你现在是C#开发人员的话,你大概非常习惯编写象下面这个代码片段一样带有基本属性的类型:publicclassPerson{privatestring_firstName;privatestring_lastName;privateint_age;publicstringFirstName{get{return_firstName;}set{_firstName=value;}}publicstringLastName{get{return_lastName;}set{_lastName=value;}}publicin 阅读全文
posted @ 2012-12-28 14:24 东风125 阅读(1709) 评论(0) 推荐(0)