it's my opinion that today we unfortunately live in a world that requires some kind of harder problem solving skills from maybe 20% of the population. And I'm being very very generous. So putting that percentage with the question in the title would give an answer similar to: "Because not every one can do it." DOH, right? I'd say you're wrong since everyone had a problem to solve at least once in a lifetime. So what's the problem? Why is it perceived as hard? Let's take a little trip through your past. When you were just an infant, what was...
Having started programming in c/c++ i've always been used to casting between types using () operator: int i = (int)x With the coming of .Net framework ValueTypes and ReferenceTypes were introduced and we started hearing about boxing and unboxing. if you're not familiar with these terms pick a link from this search and read up. Also we've been introduced to System.Convert class and IConvertible interface. But old habits are hard to break and i've been preffering the (int) to Convert.ToInt32. For all thing considered i've been treating them as equals. But i've been reminded that they're not with a nice little error...
In my previous post i showed how a generic comparer class in .net C# 2.0 can be made with the use of reflection.
In my constant search to optimize code and make it better i've stumbled upon this article that explaines how IL code generation can be use in this situation. In .net 2.0 emiting IL was made very simple with the indroduction of a DynamicMethod class.
The speed of this approach is comparable to execution time of compiled code.
Result when sorting 10.000 TestClass objects 10 times was 2±0.2 seconds with DynamicMethod and 50±2 seconds with direct use of reflection on my computer. So...
What is WebDAV?
WebDAV stands for "Web-based Distributed Authoring and Versioning".
It's a set of extensions to the HTTP protocol which allows users to collaboratively edit and manage files on remote web servers.
It can also be used to access mail on exchange server. I used it for this.
It great for accessing Exchange because all you need is an XML body sent over HTTP. No installing of anything.
How it works?
WebDAV works with XML. It sends xml requests to the server and gets the responses in return.
It uses MSXML or System.Net.HttpWebRequest in .NET.
WebDAV has some extended keywords besides the standard HTTP ones...