A convenient, high-performance money structure for the CLR which handles arithmetic operations, currency types, formatting, and careful distribution and rounding without loss.
This article describes building a sample Silverlight application with the MVVM Light toolkit, WCF RIA Services, and a pluggable application architecture using MEF.
The objective of this article (Part 2) is to introduce you to using of VB / Microsoft .NET library, Function, Methods as well in your Microsoft Windows PowerShell script.
Part 2 of a series describing the creation of a Silverlight business application using MEF, MVVM Light, and WCF RIA Services. In this second part, we will go through various topics on how MVVM Light Toolkit is used in our sample application.
Part 3 of a series describing the creation of a Silverlight business application using MEF, MVVM Light, and WCF RIA Services. In this part, we will discuss how custom authentication, reset password, and user maintenance are implemented in the sample application.
Part 1 of a series describing creation of a Silverlight business application using Self-tracking Entities, WCF Services, WIF, MVVM Light Toolkit, MEF, and T4 Templates.
Part 2 of a series describing the creation of a Silverlight business application using Self-tracking Entities, WCF Services, WIF, MVVM Light Toolkit, MEF, and T4 Templates.
A simple set of classes to make creating Peer to Peer messaging easy using UDP. Features built-in message concatenation and delivery receipts for reliable transmission.
A software application is presented which facilitates the analysis of crash test data, automatically generates graphs with injury criteria, and generates reports
When iPhone SMS messages are backed up to your computer using iTunes, the messages are stored in a SQLite database. This article will show the layout of this database file and how to access all saved message information.
How to switch between N number of threads - primary and secondary services. Show a way to implement backup service switch. This could be easily converted to load balancing service.
This article is about a very light-weight enum extension library that takes advantage of dynamic types in .NET 4.0 to provide a simple way to add meta attributes to an enum field.
This library is intended to "replace" ADO.NET by solving type mismatches and by creating typed readers that are faster and easier to use than DataTables.
Samples showcasing usage of OData in .NET (WCF Data Services); samples go in increasing order of complexity, addressing more and more advanced scenarios.
Refactoring Lucene.NET to follow .NET best practices and conventions rather than Java's coding styles and limitations. This is the second in a series of articles that will be available at www.codeproject.com that follow the process from beginning to end.
Refactoring Lucene.NET to follow .NET best practices and conventions rather than Java's coding styles and limitations. A series of articles will be available at www.codeproject.com that follow the process from beginning to end.
In this article, I explain with transaction related theory and code sample, how in various scenarios we can use TransactionScope with various options for managing real life transactions.
Discusses how stock market trading works, the different types of market data available, and provides a code example with sample data that processes a market data feed
If you want to use ASP.NET MVC framework but is strugling to get things arrange to confidently use for your next business project. This Article is just for you. The article guide you to use ASP.NET MVC framework to architect a small Document Management System.
The primary purpose of this article is to provide quality sample source code for VB.NET developers interested in building data-centric applications using the .NET Framework.
A Custom Session Store provider library which allows using Oracle for managing ASP.NET sessions... more than just MS SQL server, and it is easily extendable to other databases.
Convert a class library of POCO classes to datacontracts for use with WCF without having to write DataContract and DataMember attributes directly to the POCO classes.
The Lexical Macro Processor transforms your C# code with a LISP-inspired macro system. Nice substitute for T4 templates, with Visual Studio integration and a Linux-compatible editor.
This article will show you a pattern for sending and receiving messages using Azure Service Bus + worker roles in a strongly typed manner, taking advantage of the built-in functionality that comes with Brokered Messages.
BindingHub is the best thing since sliced bread. After you finish reading this article, you will start wondering how you could survive for so long without BindingHub. I did wonder the same thing after creating it.
A Bitcoin traffic sniffer that intercepts bitcoin protocol messages and analyzes them in order to check if bitcoin addresses in transactions are vulnerable.
This package will help you send all kinds of emails like account creation, order, mailing, reports, ... everything containing dynamic fields. You can configure your own SMTP server, use notification, and add attachments.
The article describes an implementation of an ASP.NET validator that uses the new System.ComponentModel.DataAnnotations assembly that came in .NET 3.5 SP1.
This article is a sequel to my previous CCTreeMiner: An algorithm for Subtree Mining Problems. I fixed some bugs and made some improvements. Also I want to further describe this algorithm.
.NET apps are run by the .NET runtime. There exists an unmanaged API which allows you to run apps under a customized runtime. This API lets you strengthen security, provide a different deployment strategy, add framework logging, provide your own memory management implementation, and sandbox an appli
This article focuses on improving the maintainability of your code thus decreasing the cyclomatic complexity and lines of code, using existing features of .NET.
This article explains how to create a class that can handle any kind of data-type conversion by allowing users to register their own conversions and how to make it work both as a global and also as a local solution, so different threads can do different conversions for the same data-types.
The current article might be useful for users attempting to use NServiceBus. It contains detailed instruction for creating pairs: publisher-subscriber through ServiceMatrix. Solution architects may find this technique useful in many CQRS scenarios as a good alternative to WCF.
This article will teach you how to create an amazing, clean and smooth WPF/Winform UI for your native application without using any complex, unsafe, ActiveXish methods, etc.
Create, read, update, delete,Log in and Log out, (CRUD) operations are easy to perform in ASP.NET MVC. By using the default T4 scaffolding templates and strongly-typed views you can quickly build a web application that can create, update, and delete records.
A string template method that allows you to fill a string with data. Easy to use, fast, extensible, and extremely powerful! Uses Reflection, Conditional Formatting, iterating through Arrays, and more!
Custom Rule Engine approach which can evaluate complex combinations of business rules. A sample application is provided in WPF following the MVVM pattern.
This article describes default binding configurations, default behavior configurations, inheritance model in behavior configurations, file-less activation and standard endpoints in WCF 4.0/4.5
From my earliest memory of programming, I was taught that we should do some level of design before coding. Somewhere around the way I started hearing phrases Dependency Injection, IoC etc., but whenever I asked people the need for these patterns, I seldom got an answer that satisfied me…
In this article we'll see the differences between using Dictionaries with locking versus the ConcurrentDictionary and also why you should still need or prefer a normal Dictionary (or a home made implementation).
This article provides and describes the EnumerableExt class, which simplifies the display and formatting of lists, collections, and arrays. It accomplishes this by implementing extension methods (Append, BuildString, and Write) that are available via the IEnumerable interface.
This article will cover almost every OOP concept that a novice/beginner developer hunt for, and not only beginners, the article’s purpose is to be helpful to experience professionals also who need to sometimes brush-up their concepts or who prepare for interviews.
Creating the AList data structures for my "list trifecta" series must have taken hundreds of hours. The DList is a vastly simpler beast, but in certain cases will boost your insert/remove speed a lot.
The goal of this tutorial is to walk you through creating a simple Silverlight module in DotNetNuke that authenticates the currently logged in user through a web service.
I've been recently working on a smart client (WinForms) application backed by Entitiy Framework 4 (EF4) on Visual Studio 2010. In this blog post I will try to give you some tips regarding some limitations and points to be careful about EF4.
This article explains how you can get the data for your last trip off of the Chaser Windows Phone App and convert it to GPX data so you can upload it manually to Strava.
An important thing in Blend for Windows Phone is that it is pretty much the same as in Silverlight with Blend. All the features work in the same way...
In today's world, application requirements are changing and software is constantly evolving. The Managed Extensibility Framework is a one stop solution for most business problems we solve in our day to day life. Applications targeting MEF can easily adopt to changes in business elegantly.
Extension method is a feature in C# 3.0, which allows a developer to add functionality in existing class without modifying or recompiling or extending the existing class.
How fast can a loop reading from memory be made to run and how does loop constructs, data types, interfaces, unrolling and hoisting affect performance?
An easy to use .NET library to read/write strong typed data from files with fixed length or delimited records (CSV). Also has support to import/export data from different data storages (Excel, Acces, SqlServer, MySql)
For modern web-applications has become the usual to use AJAX when you create user interfaces. However, it makes our headache from time to time. And often these difficulties are associated with authentication and processing such requests on the client.
Language Integrated Query (LINQ) is a Microsoft .NET Framework component that works as a communicator between the objects and the data. This article partially taken from the "Expert C# 5.0" - book and it will explore the different extension methods used in the LINQ using C# and IL code to discuss..
The article explains step-by-step how to start programming using cryptocurrency API for Bitcoin, Litecoin, CrimeaCoin, etc. The working example has been written for Crimeacoin.
This short article shows how to use an undocumented internal class method from the System.Deployment.Application.Win32InterOp namespace to get a PE images manifest resource.
Working on code for projects created in different releases of Visual Studio used to be a big hassle. Visual Studio 2010 improves this and lets you specify the version of the .NET framework and work in its interface while you’re developing in the VS IDE. Click now!
The use of Kinect.Toolbox and Coding4Fun APIs could save time on Kinect programming this is what we will see in this article and also how to modify those APIs and use it
Runtime IL-Rewriting can be used to add behavior such as logging to applications, or redirect calls from one API to another. This article and accompanying source code explains how to substitute a method call at runtime.
Some time ago, I needed to retrieve the last items of a sequence that satisfied some criteria and, looking at the operators available in the Enumerable class, I noticed that there wasn’t such an operator.
Disclamer: this article is a step-by-step guide to help you to familiarize with the core functionality of Incoding Framework. Following the guide will result in an application that implements the work with the DB (CRUD + data filters) and fully covered with unit tests.
Disclaimer: the article represents a survey on the transformation of JSON data into html on the client part (browser) and reveals the operation details of template в Incoding Framework (search, formation, local storage and plugging in one’s own engine).
PresentationWindows is a WPF class library that introduces three new types derived from the Window class, enabling many previously difficult to access features of windows.
This article describes a JSON data visualizer for popular Web Services like Google, Yahoo!, Bing, and Twitter using jQuery, JavaScript, and ASP.NET MVC 2.0.
A strategy for keeping sensitive configuration values, such as connection strings, out of your source control repository, but still available to your app both locally and in the cloud. We're looking specifically at Azure websites and GitHub.
This article will help beginners to understand how knockout will work with ASP.NET and communicate client-side server side and the usefulness of the responsive UI design.
The TakeLast operator returns a specified number of contiguous elements from the end of a sequence and is implemented as the TakeLast extension method.
The TakeLastWhile operator returns last contiguous elements from a sequence that satisfy the specified criteria and is implemented as the TakeLastWhile extension methods.
When you use a List, it doesn't matter if you use the ForEach method of the generic list or use a normal foreach or does it? Sometimes it makes a difference!
In this article, I am going to demonstrate how to get more data on demand i.e. On every click of button fetch more records from SQL Server database table and load in GridView with wait/progress/loading image as shown in image in ASP.NET using both C# and VB languages.
Presents methods to handle some of the trickier aspects of MVVM, including error message localization, multi-control validation, validation with multiple instances of a View, and whole-View validation.
A guide to creating secure Silverlight + WCF RIA Services applications for the enterprise! This is done using Application Request Routing (turning IIS in a reverse proxy).
This Article discusses on Memory allocation in .Net and how JIT compiler optimizes non-volatile code. It also talk about Value Type, Reference type, Stack, Heap, Boxing, Unboxing, Ref, Out and Volatile.
The benefit of putting validation in the model layer is that, the validation rules will be enforced everywhere in the application that accesses the database. It also means that we can change the validation rule in one place and every UI element inside our app will automatically get updated.
A standard in-memory generic .NET queue that, when the configurable overflow limit is reached, will start using MSMQ as a backend to mitigate the issues with memory usage.
This article will help you to handle all types of errors in MVC platform; MVC Views, API, 404.0, Synchronous/Asynchronous Calls all with same user experience centrally.
First part to the three part series of articles describing how to create a information system where teachers can manage there students and classes. This tutorial will go in depth on using MVC's Code First approach and touch on using MvcScaffolding in the Nuget Package Console.
This second article from the "MVC Basic Site" series presents in details the exceptions management rules and their implementation for an ASP.NET MVC web site, and provides some utile base classes and source code for Logging and Exceptions Management that can be reused.
Turn your current static website or blog into a lifestreaming portal with all your social activities with ASP.NET 4.0, C# 4.0, PLINQ, Task Parallel Library, Dependency Injection, and plug-in architecture.
The implementation of the ACO algorithm, developed and explained in this paper, is applied in different network models, represented through the graphs, with different number of nodes and structure to find the shortest path with optimum throughput presented as a total sum of costs between selected no
Improves web site performance by combining and minifying JavaScript and CSS files on the fly. Processes ASP.NET AJAX toolkit .axd files too. Improves image caching and loading. Very easy to add to any ASP.NET web site.
A really cool feature in ASP.NET 4.0 is URL routing for web forms. It, however, does not work well with the DataPager control. An alternative data paging interface comes to the rescue, solving other paging problems as well.
.NET 4 brings a powerful Task library to support a piece of code to run in parallel processors. What it does just simply spawns threads into multiple processes using the newly written task libraries (System.Threading.Tasks) in mscorlib 4.0. Task libraries contain methods like For, ForEach and Invok
This article describes how to substitute a parameter within an Expression tree by another expression, similar to how one can substitute an argument within a mathematical function by a different function
In this article, I have shown how you can build pluggable Resources for styles, Languages or any static objects, etc. Therefore building a new style doesn't hamper your code and you can easily plugin any new style to the application even though it is already in the production environment.
.NET core/.NET standard is the latest incarnation of the .NET platform. This tutorial introduces you to this new world, and gives you practical advice to successfully port your .NET Framework library to .NET Core.
This article describes a windows forms application which automates MS Office PowerPoint 2007 in order to replace predefined text of a template with your input
Use TestUI to release a simple class library (or a whole collection of those) as an indepenent UI application for testing or administrative purpose. It is on your own to enhance the user experience with your own TestUIRenderer.
This class makes getting MemberInfos easy, without the use of magic strings (so it is refactoring friendly) and also allows you to create delegates to do fast accesses to those items, much faster than the normal Invoke, GetValue or SetValue methods.
This article of the series will explain how we can handle requests and log them for tracking and for the sake of debugging, how we can handle exceptions and log them. We’ll follow a centralized way of handling exceptions in WebAPI and write our custom classes to be mapped to the type of exception th
This is the last article of the RESTful series in which I’ll explain how you can leverage OData capabilities in ASP.NET WebAPI. I’ll explain what OData is and we’ll create OData enabled RESTful services.
A multithreaded server class that accepts multiple connections from a provided client class. Each client can send and receive files and text (byte data) simultaneously along 250 available channels.
This article describes a design, implementation and usage of the Custom Routing Manager for managing messages via Routing Service built-in .Net 4 Technology.
SaintModeCache is a thread safe in-memory cache wrapper for performance optimisation. It's able to continue serving stale content after expiry, whilst it repopulates the cache with a non-blocking single thread.
Saving zip files in access database with encrypting bytes when file saved in access database and decrypting bytes when extracting files from database . . .
In the software implementing business synchronizing structures/templates of the database entities with Data Access Layer SQL (commands/Transactions) is the most expensive thinks because you need to re-implement when you have change/s in your entities structure's such as Data-type, Name, and etc.
This article will find out a solution to serialize/deserialize object by reference at server and client, also will serialize/deserialize objects having circular references.
The SetKeepAliveValues method enables or disables the per-connection setting of the TCP keep-alive option which specifies the TCP keep-alive timeout and interval
Silverlight 4 Beta 1 has been released by Microsoft on 18th November 2009. Among the new features, I will demonstrate one of them “Accessing Default Webcam using Silverlight 4”.
Want to get rid of messy "PropertyChanged"-subscriptions and too many OnPropertyChanged("...") to manage value relations? Then DataBinder is what you're looking for!
SmartFormat.NET /2 is a string template library that allows you to fill a string with data. Easy to use, fast, extensible, and extremely powerful. Allows for named {placeholders} using any data type, conditional formatting, iterating through IEnumerables, and much more.
A detailed development of a simple ASP.NET web service, in addition to configuring IIS server to host the service, finally creating an ASP.NET, Java and PHP web clients that consume the service.
A T4 template for Silverlight apps that generates a class containing literal strings for all the resource strings defined in a .resx file. It helps make your Silverlight code much more maintainable.
Let's understand the evolution from older multi-threading world to Task Parallel library (alias TPL). What are the use cases where you would want to leverage TPL instead of creating threads on your own. What are exact areas where TPL has real edge.
Concerned about regular expressions being unintelligible, repetitive, hard to get right and non-recursive? Read part 5, possibly the most useful part yet!
When I needed to compute the Daylight Saving Time transitions for any year, I had to dig a bit deeper into the time zone information stored in the Windows Registry.
I decided to create my own sample project which connects to a named server (anSQL 2008 R2 server on my local machine – will also work on SQL Server 2012Express