Have language features changed the way we work for the better?

by alski 20. April 2009 18:32
Craig Murphy dropped a little coding challenge on his blog the other day. This prompted me to write the responses as below. I’ve tried to target each one towards using a particular technology as the framework has developed. Have a look and tell me which is your preferred answer, or propose a new o... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

DotNet3.5 | DotNet2.0 | Code

Proxy authentication with retry

by alski 4. February 2009 19:55
Need to talk through a proxy? Try this. You'll probably want to refactor in a factory method to allow the correct creation and re-creation of the WebRequest. Note that attempt one uses the default proxy with Windows authentication parameters, subsequent attempts ask for a user name and pa... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Code | DotNet2.0

Strongly typed DAL reader

by alski 30. October 2008 21:58
I wrote this little piece of code a while ago, and the more I see it the more I'm proud of it. It allows you to create strongly typed objects from each row of a data result, and yield them, so you can dispose them individually without needing the whole list in memory. It also filters out null ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Code | DotNet2.0

The syntax for an anonymous delegate

by alski 7. April 2008 23:15
I seem to have problems remembering the syntax remembering the syntax for anonymous delegates, so here it is. return GetUnfilteredList().FindAll(new Predicate<MyObject>( delegate (MyObject instance) {     return (instance.IsWanted)); })); What strikes me as a write this though ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Code | DotNet2.0

So how does assembly load work

by alski 27. March 2008 18:52
Cameron and myself were wondering what actually happens in various scenarios and so we came up with some Unit Tests. What we found With local dlls it tries several paths bin/Debug/TestAssembly.DLL. bin/Debug/TestAssembly/TestAssembly.DLL. bin/Debug/TestAssembly.EXE. bin... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Code | DotNet2.0

Streaming ForEach using a yield

by alski 14. February 2008 14:36
I've been looking for an article on converting foreachs into a less memory intensive operation and I remember reading http://msdn2.microsoft.com/en-us/vcsharp/bb264519.aspx before, I just couldn't find it.  Basically it uses an example of all numbers in the New York phone b... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Code | DotNet2.0

Why List&lt;T&gt;.Foreach missed the boat AKA The great 'Personal threading maturity model' barrier

by alski 11. October 2007 22:21
With dotnet2.0 there a great set of functions added onto the generic list classes and their associates. I am particularly fond of anything which makes use of Predicate<T> like filter, but I've recently realised that this functionality is flawed. The great 'Personal threading matu... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

DotNet2.0

AssemblyName.ReferenceMatchesDefinition is missing in MSDN

by alski 31. July 2006 22:11
Strangely the static AssemblyName.ReferenceMatchesDefinition function is rather poorly documented in the MSDN documentation that came with my copy of Visual Studio 2005It does seem to work the way the name suggests.UpdateMSDN online has the correct info.Junfeng Zhang as always comes up with the imp... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

DotNet2.0

To VS2005 or not...

by alski 4. April 2006 21:34
SummaryPros and Cons of upgrading to Visual Studio 2005 and dotNet 2.0 DotNet2.0 What's new http://msdn2.microsoft.com/en-US/library/7cz8t42e(VS.80).aspx and http://msdn2.microsoft.com/en-US/library/t357fb32.aspx Pros Assemblies should just compile. However there will be a l... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

DotNet2.0 | VisualStudio

When Off is actually On

by alski 8. April 2005 20:56
Strange as it seems but “Server encountered an internal error. For more information, turn on customErrors in the server’s .config file.” is actually begging for you to add, <system.runtime.remoting>     <customErrors mode="off"... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Code | DotNet2.0 | Work

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

RecentComments

Comment RSS