随笔分类 - C#
摘要:Stephen Toub Download the Code Sample Asynchronous programming has long been the realm of only the most skilled and masochistic of developers—those with the time, inclination and mental capacity to re...
阅读全文
摘要:Alex D James 7 May 2009 3:44 PM One of the most common questions we get is how long should an ObjectContext should live. Options often cited include one per: Function Form Thread Application Plent...
阅读全文
摘要:The C# Memory Model in Theory and Practice Best Practices All code you write should rely only on the guarantees made by the ECMA C# specification, and not on any of the implementation details expla...
阅读全文
摘要:Posted on Friday, October 11, 2013 .Net has three low-level mechanisms to run code in parallel: Thread, ThreadPool, and Task. These three mechanism serve different purposes. Thread Thread represents ...
阅读全文
摘要:Actually the title of this article should be entitled “How to use WeakEventManager with ICommand implementations”, but the memory leak title is more exciting (and true) Overview Some WPF controls, suc...
阅读全文
摘要:In a previous post Should I expose asynchronous wrappers for synchronous methods?, I discussed “async over sync,” the notion of using synchronous functionality asynchronously and the benefits that doi...
阅读全文
摘要:This post was written by Stephen Toub, a frequent contributor to the Parallel Programming in .NET blog. He shows us how Visual Studio 2012 and an attention to detail can help you discover unnecessary...
阅读全文
摘要:Lately I’ve received several questions along the lines of the following, which I typically summarize as “async over sync”: In my library, I have a method “public T Foo();”. I’m considering exposing ...
阅读全文
摘要:In this post we will be discussing about change tracking feature of Entity Framework Code First. Change tracking allows Entity framework to keep track...
阅读全文
摘要://Writes colored text to the console and allows to clear previously written lines//as long a not line break is present//Sample - screenshot at http://...
阅读全文
摘要:With EntityFramework’s support for enums, there is no longer any need to include lookup tables in the model. But I do want to have them in the databas...
阅读全文
摘要:http://www.cnblogs.com/beniao/archive/2010/08/11/1797537.html在MEF之前,人们已经提出了许多依赖注入框架来解决应用的扩展性问题,比如OSGI 实现以Spring 等等。在 Microsoft 的平台上,.NET Framework 自身内...
阅读全文
摘要:Last month I’ve a chance to develop an app using Sqlite and Entity Framework Code First. Before I started with this project, I thought everything will...
阅读全文
摘要:ebruary 11, 2012bymikael koskinen2 commentsIn this tutorial we will go through of couple different ways of using custom constructor parameters when re...
阅读全文
摘要:http://coding.abel.nu/2013/11/enums-and-lookup-tables-with-ef-code-first/With EntityFramework’s support for enums, there is no longer any need to incl...
阅读全文
摘要:I have always found that there isn’t enough documentation about Custom Control development in WPF. Most of the information is segregated into articles...
阅读全文
摘要:In XAML, when you want to reference a CLR type, you have to add a namespace mapping that maps the XML namespace to the CLR namespace, like so:xmlns:lo...
阅读全文
摘要:In the last post we created aScrollViewer Thumbnailfeature using a just a bit of Xaml and databinding magic.Since it's a pretty useful feature, it mak...
阅读全文
摘要:While WPF and XAML make the common 90% of UI programming quite easy, sometimes it gets a little odd in those other 10%. For instance - the visual tree...
阅读全文
摘要:Posted onTuesday, November 5th, 2013 at 7:18 ambyPieter van der Westhuizen.You’ll see a lot of complaints on the internet about Excel and other Micros...
阅读全文

浙公网安备 33010602011771号