Quantcast
Channel: {%Pragmatic Coding%} » .NET
Browsing latest articles
Browse All 10 View Live

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 Article



Cloning 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 Article

Working 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 Article

How 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 Article

Dynamic 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 Article


What’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 Article

How 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 Article

Visual 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 Article


C# 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 Article


How 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
Browsing latest articles
Browse All 10 View Live




Latest Images