随笔分类 -  C#

Collection in C#
摘要:Gieno Collection in C# Here is howI used LINQ to learn about what collections really are. Collection initializers With LINQ, the Language INtegrated Query framework, we're enabling a more expression-o... 阅读全文
posted @ 2009-09-17 13:22 Gieno
Dynamic in C# 4.0, Part 8
摘要:Gieno Dynamic in C# 4.0, Part 8After7 posts on dynamic for learning, this time I think it's much more to fun to use it for something evil… by making Reflection simple.In C# 3.0 invoking members ... 阅读全文
posted @ 2009-09-16 14:35 Gieno 阅读(1731) 评论(8) 推荐(3)
Shortest Path Algorithm -- Polyline Routing
摘要: This post shows demo about a very basic shortest Path Algorithm: Polyline Routing, which is wrote in C# with Silverlight. 阅读全文
posted @ 2009-09-15 12:01 Gieno 阅读(415) 评论(0) 推荐(0)
Functional Programming is Important in Multi-Environment
摘要: With the development of C#, I'm just asking my self: Is C# becoming a functional language? In this post I'm going to tell something about why I think functional programming is so important. 阅读全文
posted @ 2009-09-14 13:53 Gieno 阅读(376) 评论(3) 推荐(1)
CPS (Continuation-Passing Style) in C#
摘要: Continuation-Passing Style is a geek (like Callcc, remember? ). In this post, I will tell something about CPS. 阅读全文
posted @ 2009-09-11 11:18 Gieno 阅读(2147) 评论(3) 推荐(2)
Recursive Lambda Expressions in C#
摘要: In this post, I'm going to write something for recursive lambda expressions. 阅读全文
posted @ 2009-09-10 09:52 Gieno 阅读(497) 评论(0) 推荐(1)
Monadic Parser in C#
摘要: Parser combinators are an idea that I really enjoy every time. So in this post, I'm going to write something for it. 阅读全文
posted @ 2009-09-09 10:16 Gieno 阅读(438) 评论(0) 推荐(1)
Philosophies Of Arguments Feature in C# 4.0
摘要:Gieno Philosophies Of Arguments Feature in C# 4.0Okay, my attempt at a clever title failed… Ties and Philosophers? I oughtta stick with technical writing. :)We’re almost done with our chat... 阅读全文
posted @ 2009-09-04 11:42 Gieno 阅读(194) 评论(0) 推荐(1)
Overload Resolution in C# 4.0
摘要:Gieno Overload Resolution in C# 4.0 Last time we talked about the basics of named arguments, optional arguments, and default values. From here on out, I’m just going to refer to the whole featur... 阅读全文
posted @ 2009-09-03 09:23 Gieno 阅读(284) 评论(0) 推荐(0)
Concept Of Optional Parameter in C# 4.0
摘要:Gieno Concept Of Optional Parameter in C# 4.0C# 4.0 introduces the concept of optional parameter values into the language. I'll first let's talk about the features themselves, and will follow that wit... 阅读全文
posted @ 2009-09-02 10:03 Gieno 阅读(547) 评论(1) 推荐(0)
Dynamic in C# 4.0, Part 7
摘要:Gieno Dynamic in C# 4.0, Part 7 By now, my hope is that you all have a well-rounded view of dynamic. The thing that's been occupying my thoughts lately is the semantics around the phantom method. What... 阅读全文
posted @ 2009-09-01 13:35 Gieno 阅读(307) 评论(0) 推荐(1)
Dynamic in C# 4.0, Part 6
摘要:Gieno Dynamic in C# 4.0, Part 6As I mentioned last time, there are a few gotchas that we'll need to look at in order to get a full understanding of the dynamic feature and its capabilities. Today we'l... 阅读全文
posted @ 2009-08-31 09:33 Gieno 阅读(322) 评论(0) 推荐(0)
Dynamic in C# 4.0, Part 5
摘要:Gieno Dynamic in C# 4.0, Part 5Now that we're all experts in how dynamic invocations work for regular method calls, lets extrapolate from our previous discussion about phantom methods a bit and take a... 阅读全文
posted @ 2009-08-28 11:22 Gieno 阅读(484) 评论(2) 推荐(1)
Dynamic in C# 4.0, Part 4
摘要:Gieno Dynamic in C# 4.0, Part 4Yes, this does sound like a Star Wars movie, but no, I'm not a Star Wars geek that just likes to pull lines from my favorite movies (though I rather enjoyed Star Wars). ... 阅读全文
posted @ 2009-08-27 13:07 Gieno 阅读(306) 评论(0) 推荐(0)
Dynamic in C# 4.0, Part 3
摘要:Gieno Dynamic in C# 4.0, Part 3Last timewe deal with some basics. This time, we'll add a small twist. First, lets recall the example we were using last time:static void Main(string[] args) { dynamic d... 阅读全文
posted @ 2009-08-26 13:29 Gieno 阅读(322) 评论(0) 推荐(0)
Dynamic in C# 4.0, Part 2
摘要:Gieno Dynamic in C# 4.0, Part 2Last time, we began to dive into dynamic binding in C# and what happens through the pipeline. This time, we'll take a simple scenario and pick apart the details of what ... 阅读全文
posted @ 2009-08-24 14:04 Gieno 阅读(337) 评论(0) 推荐(0)
Dynamic in C# 4.0, Part 1
摘要:Gieno Dynamic in C# 4.0, Part 1The other day I was playing around with some office code, and I found myself writing a lot of code much like the following sample that Anders used at his PDC talk:static... 阅读全文
posted @ 2009-08-21 11:27 Gieno 阅读(414) 评论(0) 推荐(1)
Calling new on an interface
摘要:Gieno Calling new on an interfaceInteresting thing: technically there is a way to call new on an interface to create an object. How? Using a feature in the C# compiler for COM-interop support: [代码]Her... 阅读全文
posted @ 2009-08-20 13:57 Gieno 阅读(163) 评论(0) 推荐(0)
Every Type Derives From Object in C#? Not True!
摘要:Gieno Every Type Derives From Object in C#? Not True!I hear a lot of myths about C#. One I hear quite frequently is "in C# every type derives from object". Not true! First off, no pointer types derive... 阅读全文
posted @ 2009-08-20 13:50 Gieno 阅读(270) 评论(0) 推荐(0)
A case of lost session variables when using out of process session state
摘要:Gieno A case of lost session variables when using out of process session stateRecently I had a case where the customer had an issue with session variables. The claim was that if they use in-proc sessi... 阅读全文
posted @ 2009-08-20 13:40 Gieno 阅读(211) 评论(0) 推荐(0)