How To: Format Decimal.ToString() in C#
Today I have spent some time to find out how correctly convert and format decimal number to string representation with 2 decimal digits. And here is what I found and learned I want to share it with you...
View ArticleCloning objects in C#
Few days ago I needed to clone object and than modify some data in it. For example, get object from db and make clone this object with same data to be able to modify some specific properties. Something...
View ArticleWorking with GPS in WinCE using C#
In this article I want to share with You, my dear reader, the implementation of the GPS data access in devices based on WindowsCE.When I had to create a product Shturman Navigator, it was necessary to...
View ArticleHow To: Get property value from string using reflection in C#
Few days ago I had to implement selection of a list of items with filtering and fields I had to filter by has been passed as a string value. Will give you sample function where I have implemented...
View ArticleDynamic Linq OrderBy Extension
Few days ago as usualy I working on my project and I made a function where I'm passing field name for sorting table using Linq stuff. I was in need of an OrderBy extension method that could take a...
View ArticleWhat’s new in reflection for .NET 4.5
.NET 4.5 has some changes to the System.Reflection. The most significant is that the Type is now separated into two classes: Type and TypeInfo. TypeInfo object keeps a complete definition, and the Type...
View ArticleHow to: Using async and await in C # – Best Practices
Async and await keywords, introduced in C # 5.0, greatly simplify asynchronous programming. They also hide some difficulties, if you lose a focus. It can add some problems to your code. The following...
View ArticleVisual Studio: Import and Export Breakpoints
Visual Studio saves breakpoints in a XML file. To save the breakpoints, you just need to click on the “Export” button in breakpoint window as shown in the following figure. You can use the saved XML...
View ArticleC# ASP.NET friendly “slug” url creating
Hello friends! I had to develop asp.net mvc controller which could accept a parameter as a slug string for friendly URL's which look like the following: [crayon-557771d48885c502945139/] First what...
View ArticleHow to: Using TPL Dataflow for multithreaded file compression
In this small tutorial I will show you how to use TPL Dataflow library with a quite trivial task - multithreaded file compression. PreInit We need to implement efficient compression of files using...
View Article
More Pages to Explore .....