fredrikmork

Stories kicked by fredrikmork

WIF and Colliding Namespaces(softwareblog.alcedo.com)

submitted by fredrikmorkfredrikmork(162) 1 month, 24 days ago

A short note of an approach to handle cases when you work with several namespaces containing types with the same names. read more...

add a comment |category: |Views: 54

tags: another

What is the value of definitions?(softwareblog.alcedo.com)

submitted by fredrikmorkfredrikmork(162) 2 months, 24 days ago

A reflection over whether our wish to have definitions to label things (such as "unit test" vs other kinds of tests) makes it easier or harder to communicate. read more...

add a comment |category: |Views: 0

tags: another

TaskCompletionSource in real life (part 2 of 2)(softwareblog.alcedo.com)

submitted by fredrikmorkfredrikmork(162) 4 months, 2 days ago

Second part of two showing examples from real life where TaskCompletionSource has proven useful. In this part: creating Task-based wrappers for asynchronous operations following patterns that are not directly supported by the Task Parallel Library. read more...

add a comment |category: |Views: 9

tags: another

Using C# 5.0 Async for File Access(blogs.msdn.com)

submitted by dpetersondpeterson(4397) 4 months, 2 days ago

Alan Berman shows us how we can improve the responsiveness of our applications without jumping through callback hoops by taking advantage of C# 5.0 async when performing file I/O. read more...

add a comment |category: |Views: 337

tags: another

TaskCompletionSource in real life (part 1 of 2)(softwareblog.alcedo.com)

submitted by fredrikmorkfredrikmork(162) 4 months, 3 days ago

First part of two showing examples from real life where TaskCompletionSource has proven useful. In this part: mocking Tasks for testing. read more...

2 comments |category: |Views: 126

tags: another

A few principles for writing blazing fast code in .NET(www.smelser.net)

submitted by JoeGeekyJoeGeeky(364) 4 months, 4 days ago

Just a few tips to write code that requires higher performance demands read more...

2 comments |category: |Views: 1020

tags: another

Sometimes being Lazy is a good thing(softwareblog.alcedo.com)

submitted by fredrikmorkfredrikmork(162) 4 months, 16 days ago

ConcurrentDictionary.GetOrAdd may cause unwanted side effects where the code that produces the value may be run more than once. This is a discussion of that scenario, along with a TDD-style walk-through of a solution. read more...

3 comments |category: |Views: 192

tags: another

Using-blocks and asynchronous operations(softwareblog.alcedo.com)

submitted by fredrikmorkfredrikmork(162) 5 months, 12 days ago

An article showing how to create a helper method that has a similar structure to a using-block (for IDisposables), and that works with asynchronous operations. Also doubles as a walk-through for the thought process of creating the code and unit tests for it. read more...

1 comment |category: |Views: 188

tags: another

Fun with method overloading(softwareblog.alcedo.com)

submitted by fredrikmorkfredrikmork(162) 1 year, 8 months ago

An article looking into a result of method overloading that might seem as a suprise, but has its explanation in the C# Language Specification. read more...

add a comment |category: |Views: 5

tags: another

Not the Chinese whispers (chaining assigments in C#)(softwareblog.alcedo.com)

submitted by fredrikmorkfredrikmork(162) 1 year, 8 months ago

An examination of how chaining assignments (as in x = y = z = 42) works in C#. read more...

add a comment |category: |Views: 1

tags: another

Extension method for safe event invokations(softwareblog.alcedo.com)

submitted by fredrikmorkfredrikmork(162) 2 years, 2 months ago

I continue to look into using extension method to encapsulate repetetive code patterns, this time by making an extension method that raises events in a safe manner. read more...

add a comment |category: |Views: 5

tags: another

Using extension methods to hide infrastructure code(softwareblog.alcedo.com)

submitted by fredrikmorkfredrikmork(162) 2 years, 2 months ago

A blog post showing an example of using extension methods to encapsulate repeating patterns of "infrastrucure code" (such as try-catch blocks), allowing the core methods in the code to appear a bit cleaner and easier to read and understand. read more...

add a comment |category: |Views: 13

tags: another

Readonly collection properties and XmlSerializer(softwareblog.alcedo.com)

submitted by fredrikmorkfredrikmork(162) 2 years, 3 months ago

How to deal with compiler error CS0200 related to using XmlSerializer with classes exposing readonly collection properties. read more...

add a comment |category: |Views: 20

tags: another

Code design: exposing fields or properties?(softwareblog.alcedo.com)

submitted by fredrikmorkfredrikmork(162) 2 years, 3 months ago

A discussion on the reasons to expose state through properties rather than exposing fields. read more...

add a comment |category: |Views: 6

tags: another

Resolving relative paths in C#(softwareblog.alcedo.com)

submitted by fredrikmorkfredrikmork(162) 2 years, 3 months ago

A short post showing how to resolve file system relative paths in C#. read more...

add a comment |category: |Views: 12

tags: another

Nullable<T> vs null(softwareblog.alcedo.com)

submitted by fredrikmorkfredrikmork(162) 2 years, 3 months ago

How is it that Nullable<T>, being a value type, can behave have null assigned to it, and be compared to null? read more...

add a comment |category: |Views: 11

tags: another