随笔分类 - .NET
摘要:This article discusses a C# compiler's capability to avoid unnecessary self-casting boxing and unboxing sequence.
阅读全文
摘要:An issue related to selected item update on changing data bound WPF standard ComboBox item sources I've analysed and fixed.
阅读全文
摘要:Issues with previous apps and app installation and launching I encountered when I started using a new Samsung Ativ laptop which has been used by my wife before.
阅读全文
摘要:QuanbenSoft Windows Runtime (Windows Store)Apps 应用和框架总览
阅读全文
摘要:This article discusses the design of the enhanced platform based on Plato framework that is potentially running on a C/S setting and enables collaborated editing of canvas work.
阅读全文
摘要:This article discusses an approach to the issues with the obtention of visual bounds of objects from view/view model side, including
the unavailability of the view/view model and the impact on the functioning of the framework of Plato by violating its guidelines of usage. It introduces a modified sight manager with unified visual information support and how it's integrated with the existing system.
阅读全文
摘要:A program that demonstrates some special values of double type and their relations.
阅读全文
摘要:In C# we all know the standard way of finalising an object that potentially contains both managed and unmanaged resources islike 1 class SomeDisposabl...
阅读全文
摘要:Simplest C# code so far I can think of equivalent to the JavaScript design pattern to allow private members.The original JavaScript code can be found here:http://www.crockford.com/javascript/private.htmlFor the ease of comparison, the JavaScript code from the above linkis also pasted here, 1 functio
阅读全文
摘要:At work I spent a lot of time trying to get my head around a issue with WPF grid resizing during runtime. I always found the controls don't resize the way I wanted and differently than how those in the exemplary program (MS Office in this case) do.What I intended to do issomething like the recen
阅读全文
摘要:这里的基本整理一般原则是:1. 尽可能少分段2. 关于类的尽可能靠前(例如static),关于实际对象的尽可能靠后3. 早生成的尽可能靠前4. 公有的,接口的尽可能靠前5. 抽象的,通用的,基础性的,被依赖靠前;继承过来的尽量靠前6. 相对需要引起注意的尽量靠前7. 其他一些以往经验考虑 1 class Sample : BaseClass, IIntf1 2 { 3 #region Enumerations 4 5 enum EnumType 6 { 7 Const1, 8 // ... 9 } 10 11 #en...
阅读全文
摘要:Resources Needed,1. API: http://msdn.microsoft.com/en-us/library/live/hh826523.aspxlooks like the ultimateprogram has to be in a windows store app or windows phone app form, hopefully it can be an offline app in debugging mode able to have the calendar updated.2. Algorithms: (Shouldn't be too ha
阅读全文
摘要:想当然了,用递归实现DCT,没想到DCT有4个分支需要递归下去,这样的规模非但无法快速实现,反而由于本身时间复杂度没有多大减少加上递归开销等等比慢速实现往往还慢。这个代码片段将由于清洁需要从QSharp中删除而保留在这里,对其分析将在代码之后有空时进行。过两天想想是不是能用动态规划或备忘录来改进这个算法。 1 /// <summary> 2 /// Type-IV DCT implemented using recursive method 3 /// Warning: This method is mathematically crippled even slower than
阅读全文
摘要:IT学习无止境。以下整理一下计划学习和研究的东西。语言学习,重点关注C#(不能说掌握得差不多了,但继续作为主力编程工具需要不断提高)和C++11的进展,补一些boost的课(有条件的话看boost在新C++条件下如何演进)和C++遗忘的东西,回顾设计模式在这两个语言中的应用。留半个眼睛给Functional Programming和并发编程。有空粗略思考一些语言设计、对象模型、泛型和元编程、编译实现的问题。最近我发现越发对C++这门语言不感冒了。个人感觉,除了一些计算密集性能要求和架构要求有些紧张的场景,C++不是一个好的选择。对于前端界面应用,越来越没有C++什么事,对于大型的复杂的前端应用
阅读全文
摘要:这里用一个算法题进行比较。原题是见http://acm.hdu.edu.cn/showproblem.php?pid=4090,登载在http://blog.csdn.net/woshi250hua/article/details/7997550作者提供了一个比较快的答案。我之前也尝试做了一个,没有用递归,但也没有用作者使用的格局保存的剪枝方案,比较慢,随后看了作者的方案后再整合进了一个基本等效的格局保存逻辑。以下是作者的C++程序的基本等价的C#程序, 1 using System.Collections.Generic; 2 3 namespace HDU4090 4 { 5 ...
阅读全文
摘要:WPF对初学者来说一个比较复杂的概念是它用两个树来组织其元素的。了解一些WPF的同学一般都知道它们分别是逻辑树(Logical Tree)和视觉树(Visual Tree)。而这两者的关系,以及一个界面中元素究竟如何与另一个元素在这两棵树上联系起来却相当复杂,很难一言两语涵盖其规则。而树和WPF中的...
阅读全文
摘要:Open source managed at,http://code.google.com/p/physio-assist/shared on skydrive at,http://sdrv.ms/QrHJ8j
阅读全文
摘要:C# interface is very useful and powerful. The major difference in interface between C# and older languages such as java is C# introduced explicit member implementation, which can also cause considerable confusion and complexity.In this article I want to use simplest words to hopefully cover how an a
阅读全文

浙公网安备 33010602011771号