Quantcast
Channel: dev.Bratched [en] » dotnet
Browsing all 10 articles
Browse latest View live

Fun with matrix multiplication and unsafe code

In this post I will compare two methods that perform matrix multiplication. We start by defining the Matrix class: class Matrix { private readonly double[,] _matrix; public Matrix(int dim1, int dim2) {...

View Article



Playing with FindFirstFile and FindNextFile

Enumerating files in .NET is easy. Everybody knows the GetFiles method and you may be tempted to write code like this : var files = Directory.GetFiles(@"c:\windows\system32", "*.dll"); foreach (var...

View Article

Transactional NTFS (part 1/2)

Transactional NTFS and DotNet Starting from Windows Vista and Windows Server 2008, Microsoft introduced a great new feature called Transactional NTFS (TxF). It allows developers to write file I/O...

View Article

Dynamic methods in .NET

Using reflection to invoke methods which are not known at compile time might be problematic in performance critical applications. It is roughly 2.5-3.0 times slower than direct method calls. Here’s a...

View Article

LINQ to XML and reading large XML files

LINQ to XML makes it relatively easy to read and query XML files. For example consider the following XML file: <xml version="1.0" encoding="utf-8" ?> <users> <user name="User1"...

View Article


Fun with matrix multiplication and unsafe code

In this post I will compare two methods that perform matrix multiplication. We start by defining the Matrix class: class Matrix { private readonly double[,] _matrix; public Matrix(int dim1, int dim2) {...

View Article

Playing with FindFirstFile and FindNextFile

Enumerating files in .NET is easy. Everybody knows the GetFiles method and you may be tempted to write code like this : var files = Directory.GetFiles(@"c:\windows\system32", "*.dll"); foreach (var...

View Article

Transactional NTFS (part 1/2)

Transactional NTFS and DotNet Starting from Windows Vista and Windows Server 2008, Microsoft introduced a great new feature called Transactional NTFS (TxF). It allows developers to write file I/O...

View Article


Dynamic methods in .NET

Using reflection to invoke methods which are not known at compile time might be problematic in performance critical applications. It is roughly 2.5-3.0 times slower than direct method calls. Here’s a...

View Article


LINQ to XML and reading large XML files

LINQ to XML makes it relatively easy to read and query XML files. For example consider the following XML file: <xml version="1.0" encoding="utf-8" ?> <users> <user name="User1"...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images