Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
SQL Server

Home >Search > Articles & Samples > C-Sharp > Miscellaneous

What's New - What's Hot
Using the New Keyword to shadow a method in a parent class  Version: 0.00     Price: $0.00  
Total Hits: 8  |  Today: 0Author: anshudutta      Rating:  
Read Reviews | Write Review |  Your Rating: 

We all know that the New keyword is used to shadow a function in the parent class. What it means is that in the child class, the method is treated as if it does not exist in the parent class. The question then arises as to what is the difference between shadowing and overriding? You can as well define a virtual method and override it in the child class. Why do we need New keyword?...

NetworkCredential and Apache  Version: 0.00     Price: $0.00  
Total Hits: 9  |  Today: 0Author: Amund Gjersøe      Rating:  
Read Reviews | Write Review |  Your Rating: 

I had some problem getting connected to an Apache server. It returned a 401, not recognizing my credentials.
Hans Liss had a solution to this problem by manually adding credentials to the message header:...

Extension Methods in C#  Version: 0.00     Price: $0.00  
Total Hits: 17  |  Today: 0Author: Ronee Noor      Rating:  
Read Reviews | Write Review |  Your Rating: 

This feature is fascinating. Extension Methods give us the ability to include custom methods with the existing types w/o inheriting the actual type. Gives you the ability to invoke the methods as if they are instance methods on the actual type. But at compile time, an extension method has lower priority than the instance methods. Suppose you created an extension method name IsNullOrEmpty for the type String. The method invocation will always pick the one which is in the instance and ignore your ...

Cryptarithmetic  Version: 0.00     Price: $0.00  
Total Hits: 22  |  Today: 0Author: trushant pachnekar      Rating:  
Read Reviews | Write Review |  Your Rating: 

Cryptarithm is a genre of mathematical puzzles in which the digits are replaced by letters of the alphabet or other symbols. (See the figure below.) If the same letter occurs more than once, it must be assigned the same digit each time. No two different letters may be assigned the same digit. So, the problem is to find the unique digit corresponding to a unique letter. Cryptarithmetic is the science and art of creating and solving cryptarithms. J. A. Hunter coined the word alphametic to designat...

MOQ and C# (inc. synchronized and asynchronized Wcf Service calls)  Version: 0.00     Price: $0.00  
Total Hits: 7  |  Today: 0Author: Bert ONeill      Rating:  
Read Reviews | Write Review |  Your Rating: 

When it comes to 'Unit Testing' your code - you will want to test a small code base at a time (i.e. each method within your respective classes). This will led to greater stability within your overall project, if you know that each method does what it is expected. When testing the working of a method, you will want to exclude external calls to databases, third party dlls or your own services, so that you can better 'Black Box Test' your application. To exclude these external resources from your c...

Acceptable uses for the goto statement in C#  Version: 0.00     Price: $0.00  
Total Hits: 12  |  Today: 0Author: Vulpes      Rating:  
Read Reviews | Write Review |  Your Rating: 

There has been a lot of hysteria about the 'goto' statement since the famous computer scientist, Edsger Dijkstra, said in 1968 that he considered it to be "harmful".

In those days, he had a point because the 'goto' statement produced a lot of spaghetti code particularly by those using early versions of the BASIC programming language....

Formatting XAML values  Version: 0.00     Price: $0.00  
Total Hits: 8  |  Today: 0Author: Jani Giannoudis      Rating:  
Read Reviews | Write Review |  Your Rating: 

Sometime it's handy, to change the display value using a custom format. The FormattingConverter converts a value, by reflecting the String.Format method:...

A conversion of the popular DotNetNuke web application to C#  Version: 0.00     Price: $0.00  
Total Hits: 11  |  Today: 0Author: andrewcates      Rating:  
Read Reviews | Write Review |  Your Rating: 

DotNetNuke is an open source web application framework ideal for creating, deploying and managing interactive web, intranet and extranet sites. It is very well supported; just take a look at Snow Covered. Unfortunately, VB and C# programmers don't cooperate as best they should, and take a mutually exclusive choice between the languages. This is unfortunate because DotNetNuke is a very well developed framework for ASP.NET that a lot of C# programmers do not want to look at....

VS Style Tooltips and A Whole Lot More...  Version: 0.00     Price: $0.00  
Total Hits: 6  |  Today: 0Author: Steppenwolfe      Rating:  
Read Reviews | Write Review |  Your Rating: 

Why write a tooltip class, when there is a perfectly good class built in to .NET? When I first looked at the tip class, my initial impression was, this will make things so much easier! So, I hooked up the draw event handler to custom draw my tips, then typed e. to look through the parameters, but wait a sec.. where's the handle property? I took a closer look at the tip properties and.. seems like they forgot a couple of little things when they wrote the class. Little stuff, that we will never ne...

Transparent drop shadow in C# (GDI+)  Version: 0.00     Price: $0.00  
Total Hits: 43  |  Today: 0Author: Mark de Haan      Rating:  
Read Reviews | Write Review |  Your Rating: 

For a project I'm working on, I had to create transparent fuzzy drop shadows similar to those found in various Windows applications. Want to have them too? Then read on! Or just download the sources......

C# Interface Based Development  Version: 0.00     Price: $0.00  
Total Hits: 12  |  Today: 0Author: Matthew Cochran      Rating:  
Read Reviews | Write Review |  Your Rating: 

When trying to build maintainable, reusable, and flexible C# code, the object oriented nature of C# only gets us 50% of the way there. Programming to interfaces can provide us with the last 50%. Interfaced-based design provides loose coupling, true component-based programming, easier maintainability and it makes code reuse much more accessible because implementation is separated from the interface....

A Test Driven Development Tutorial in C# 4.0  Version: 0.00     Price: $0.00  
Total Hits: 17  |  Today: 0Author: Dom Millar      Rating:  
Read Reviews | Write Review |  Your Rating: 

This tutorial is an short introduction to using Test Driven Development (TDD) in Visual Studio 2010 (VS2010) with C#. Like most of my examples it's based on a game.

By completing this tutorial you will:

* Get a taste of TDD through a series of small iterations;
* Learn how VS2010 provides TDD support through a number of new features; and
* Learn a number of C# 4.0 features....

C# 4.0 Method Parameters  Version: 0.00     Price: $0.00  
Total Hits: 16  |  Today: 0Author: Srihari Chinna      Rating:  
Read Reviews | Write Review |  Your Rating: 

We have good future in C# 4.0 interms of declaring parameters with default values, So that the consuming code may or may not consume them and also this gives option that the initializing code may or may not require to assign value to the parameters. This was not the case with till C#4.0....

Symbolic Calculation in F#  Version: 0.00     Price: $0.00  
Total Hits: 21  |  Today: 0Author: Vagif Abilov      Rating:  
Read Reviews | Write Review |  Your Rating: 

One of the best areas to use a functional language is to apply it to symbolic calculations. Like transforming algebraic expressions or evaluating function derivatives. I remember how I was impressed many years ago when I looked at a program in Prolog that occupied not more than one computer screen but could tell me that derivative of sin(x) was cos(x). So I wanted to do the same in F#....

Mind Puzzle Game in C#  Version: 0.00     Price: $0.00  
Total Hits: 52  |  Today: 0Author: Taj      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is a simple game written in C# in which user presses Up, Down, Left, Right arrow keys to play this game.

The objective of this game is to arrange 1 to 15 numbers in ascending order where the numbers in grid are in random.

User will have 10 minutes of time to complete this game....

To send mails from Windows application     
Total Hits: 30  |  Today: 0Author: Sushant Joshi      Rating:  
Read Reviews | Write Review |  Your Rating: 

Usually sending mails from Windows application is tedious tasks, also many times you may have to enable IIS on eaach machines. The article describes an alternate mechanism of sending mail from Windows application....

Demonstration of Windows Mobile App without Visual Studio     
Total Hits: 126  |  Today: 0Author: Arindam Sinha      Rating:  
Read Reviews | Write Review |  Your Rating: 

Just recently I have started working on Windows Mobile and was assigned with a task to install an existing application in one of the systems with out Visual Studio 2005 or 2008. This was required for a demo purpose. Before I start describing the process, I would mention few details on - how Windows Mobile Application is tested.
For people looking for some details on designing or developing Windows Mobile Application, this is not ment for that. This would help the people who wants to know ways...

Using the ServiceController in C# to Stop and Start a Service     
Total Hits: 44  |  Today: 0Author: The 5th Rogue      Rating:  
Read Reviews | Write Review |  Your Rating: 

Have you ever searched for something small on the internet, only to find it blown up and confusing? If so, you are like me. Below I have listed how to use the ServiceController to control installed services. After understanding the code below, you will be able to Start, Stop, and get the status of a service. The first thing you need to do is, make a Reference to the System.ServiceProcess in the Solution Explorer of Visual Studio. To some of the veterans out there, they are probably asking, Why I...

Synchronization Primitives New To Windows Vista     
Total Hits: 33  |  Today: 0Author: Robert Saccone, Alexander Taskov      Rating:  
Read Reviews | Write Review |  Your Rating: 

Windows Vista ships with a raft of new and exciting technologies for developers, including Windows® Presentation Foundation, Windows Communication Foundation, and Windows Workflow Foundation. In fact, Windows Vista™ has introduced so many new .NET-friendly technologies that it is easy to overlook all the new features and functionalities that native C/C++ developers can put to work in their apps. In this article, we discuss some of the new capabilities in Windows Vista that impact native C/C++ de...

The Evolution Of LINQ And Its Impact On The Design Of C#     
Total Hits: 43  |  Today: 0Author: Anson Horton      Rating:  
Read Reviews | Write Review |  Your Rating: 

I was a huge fan of the Connections series, hosted by James Burke, when it aired on the Discovery Channel. Its basic premise: how seemingly unrelated discoveries influenced other discoveries, which ultimately led to some modern-day convenience. The moral, if you will, is that no advancement is made in isolation. Not surprisingly, the same is true for Language Integrated Query (LINQ). In simple terms, LINQ is a series of language extensions that supports data querying in a type-safe way; it will ...

1  2  3  4  5  6  7  8  9  10  Next >> 

Disclaimer - Privacy
© 2002-2017