|
|
|
|
|
Total Hits: 25 | Today: 0
|
Author: Maxim Tihobrazov
|
Rating:
|
|

Usually, parsing arguments in console applications takes a lot of time. You can find a few solutions in the Internet that make it easier to implement this task, however, they are not very simple and flexible. Therefore, I decided to design a new system based on metadata and call it NConsoler. The main idea is to find a way to transform a set of arguments to call a particular method. In case the arguments are wrong, the application must return a human understandable error message, with error deta...
|
|
|
|
Total Hits: 44 | Today: 0
|
Author: Sean Hederman
|
Rating:
|
|

This article discusses the creation of a generic Range class, and goes into the decisions and thoughts about many of the design aspects. Touches on lambdas, iterators, and generics. A Range is often useful in order to express the idea of a large set of values, without actually having all of those values around. It can be used for such diverse applications as schedulers, or caching algorithms....
|
|
|
|
Total Hits: 36 | Today: 0
|
Author: almere109
|
Rating:
|
|

Originally, DirectX.Capture supported AVI file saving only. This format is not very usable because it often results in huge files. Sometimes, only the audio needs to be saved (e.g. FM Radio or just TV-sound). The enhancements described in this article make it possible to save audio in Windows Media Audio format. It took quite a lot of searching and reading before I came to the solution presented in this article. Also, I did not find other complete C# examples on this subject, so I thought an art...
|
|
|
|
Total Hits: 42 | Today: 0
|
Author: Michael Mumcuoglu
|
Rating:
|
|

This article introduces a class ApplicationData that simplifies an application's data management
According to the "Designed for Windows XP spec v2.3" you should Classify application data into the following categories:
* Per user, roaming * Per user, non-roaming * Per computer (non-user specific and non-roaming)"
NOTE: The three categories are named here as: User, LocalUser and Common respectively....
|
|
|
|
Total Hits: 31 | Today: 0
|
Author: Chetan Kudalkar
|
Rating:
|
|

Method hiding in C# is similar to the function overriding feature in C++. Functions of the base class are available to the derived class. If the derived class is not happy, one of the functions available to it from the base class can define its own version of the same function with the same function signature, just differing in implementation. This new definition hides the base class definition. Take the following program for example....
|
|
|
|
Total Hits: 37 | Today: 0
|
Author: S.Vinothkumar
|
Rating:
|
|

Hi viewers.
First of all I want to say sorry for my poor English . This is way I trying to do how to get the volume information of our logical drives by using kernel32.dll...
|
|
|
|
Total Hits: 45 | Today: 0
|
Author: Simana.
|
Rating:
|
|

I was looking for a code that can customise printing of .net businessinfo objects from my .net application.A businessinfo object might be an order object which contains customer name, delivery address which I wanted to print as header in each pages.The order will also have properties which are collections which have to be printed after the header in each page.This code gives us the flexibility to determine exactly what went on each printed page....
|
|
|
|
Total Hits: 97 | Today: 0
|
Author: Salman
|
Rating:
|
|

For those of you who don't know, a GUID (pronounced goo'id - Globally unique identifier) is a 128-bit integer that can be used to uniquely identify something. You may store users or products in your database and you want somehow uniquely identify each row in the database. A common approach is to create a autoincrementing integer, another way would be to create a GUID for your products....
|
|
|
|
Total Hits: 64 | Today: 0
|
Author: www.yoda.arachsys.com
|
Rating:
|
|

In the C# newsgroup, there was recently (at the time of writing) a discussion about various aspects of constructors. This page provides most of the important bits about how I believe constructors work in C#, including references to the language specification to back them up. If you disagree with anything in this page, I ask you to follow the language specification link to the appropriate section. If you then believe I'm incorrectly interpreting the spec, please mail me with details. The ECMA spe...
|
|
|
|
Total Hits: 65 | Today: 0
|
Author: /www.yoda.arachsys.com
|
Rating:
|
|

Some implementations of the singleton pattern rely on the behaviour of static constructors and type initializers, in particular with respect to the time at which they are invoked....
|
|
|
|
Total Hits: 180 | Today: 0
|
Author: ozkar
|
Rating:
|
|

In many applications, there is the need to track changes to the data presented to users. There are several approaches in achieving this. In this article, I cover an approach in which I use Cloning and Generics to be able to compare objects and determine if any changes have been made. The use of cloning is important because in some systems the instantiation of an object could be somewhat expensive. Cloning allows us to do a deep copy of the object already instantiated thus preventing the expensiv...
|
|
|
|
Total Hits: 191 | Today: 1
|
Author: Marc Clifton
|
Rating:
|
|

A KeyedList is an ordered key-value list. In comparison: Hashtable is a key-value list that is not ordered; SortedList is a key-value list that is sorted; ArrayList is an ordered list. but in the System.Collections namespace, there is nothing that implements an ordered key-value list. For some reason, Microsoft has decided to implement a KeyedList as part System.Web.UI namespace. Refer to this preliminary MSDN documentation which is part of Longhorn. What's up with implement...
|
|
|
|
Total Hits: 30 | Today: 0
|
Author: Dimitrios Markatos
|
Rating:
|
|

Everyone, I'm sure, who has allowed for more than a passing perusal of .NET must be excited at the power of its Framework. Those with a pure programming background and earlier knowledge of pre-.NET technologies have found those to be sorely lacking in the solidity and methodology of a pure OOP (Object-Oriented Programming) environment and or language....
|
|
|
|
Total Hits: 41 | Today: 0
|
Author: Zdravko Krustev
|
Rating:
|
|

This project is an implementation of the game Reversi with a simple artificial intelligence. I had an assignment to write an artificial intelligence for the game Reversi, using the alpha-beta pruning algorithm. The assignment was a part of the AI course that I studied at the Sofia University, Faculty of Mathematics and Informatics. And here is the result....
|
|
|
|
Total Hits: 56 | Today: 0
|
Author: Stewart
|
Rating:
|
|

Save Time using Generics creating EventArgs. This article describes how to create a generics based EventArgs Class. I have been working on a large project that has required me to write a ton of event args classes just to pass an object of one type or another in the event. .net already contains an generic EventHandler Deleagate. This class works but you do not get intellisense and need to cast objects to the proper type. After writing 20 or so different classes I came up with the idea...
|
|
|
|
Total Hits: 32 | Today: 0
|
Author: MohammadAbdulfatah
|
Rating:
|
|

First, a personal fact: I hate writing exception handling code. And I hate it for three reasons: First reason is that I'm lazy. Second reason is that it usually means expanding a simple two-liner body of code into a ten-liner muddle. Third and most important reason is that it's hard to get the damn thing right most of the time. My favorite example comes from a certain Java application that I had to maintain, in which most database access code had finally blocks that had anywhere from two to thre...
|
|
|
|
Total Hits: 29 | Today: 0
|
Author: zubinraj
|
Rating:
|
|

For quite sometime now, I am involved in the development of application software using the .NET Framework version 1.1. But there was one thing that .NET 1.1 really lacked. The support for something like 'Templates' found in the good old C++. The support for the concept of type parameters, which makes it possible to design classes which take in a generic type and determine the actual type later on. This means that by using a generic type parameter T, you can write a single class MyList T and t...
|
|
|
|
Total Hits: 28 | Today: 0
|
Author: Carlos R. Lacerda
|
Rating:
|
|

This article describes how to build a simple game using a doubly linked list. The first place that I needed to construct a doubly linked list, I was programming in assembly from Intel. To be honest, in the occasion I had some difficulty in understanding how this type of structure worked. With the time, I had to make the same thing in C and C++. Despite the C# language to be more soft than these others and also to have an excellent library of classes that gives a good support for the user, I b...
|
|
|
|
Total Hits: 26 | Today: 0
|
Author: Marc Clifton
|
Rating:
|
|

I needed a circular list for a moving average algorithm, and seeing that there wasn't one on Code Project, I thought it would be a useful contribution. There is this article, however I have disagreements regarding the implementation, also read the article's message comments. The circular list that I've implemented uses a separate mechanism for managing the circular index from the indexer used by the enumerator. The list also provides a separate mechanism for returning the total number of item...
|
|
|
|
Total Hits: 32 | Today: 0
|
Author: EJocys
|
Rating:
|
|

Welcome to Object Oriented JavaScript class library in C#/.NET style. I like coding with JavaScript in object oriented style. But one day I've decided to bring my code into another level and make my JavaScript code to look like C# as much as possible. So I've:
1. Started to use .NET coding standards on my JavaScripts. You can find them here: MSDN - ".NET Framework General Reference: Naming Guidelines". http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconnam...
|
|
|
|
|
|