.NET news » C# C# Rss Feed

C#-like expression evaluator and type converter

Convert types, parse and evaluate expressions in runtime, in .NET 2.0
22 Apr 2010, 07:42:00   Source: C#-like expression evaluator and type converter   Tags: C#

Grid computing using C# Script and .NET Remoting

Using C# script engine inside network using .net remoting.
10 Apr 2010, 17:23:00   Source: Grid computing using C# Script and .NET Remoting   Tags: C# Performance

Parallel Computing Concepts via C# 4.0

.NET 4.0 has kept in step with the computing industry's quest for density. There has always been a quest to enhance performance while accomplishing more in a shorter period time period. Parallel LINQ, the Parallel class, the task parallelism constructs, and the concurrent collections are new to Framework 4.0 and are collectively known as PFX (Parallel Framework). The Parallel class together with the task parallelism constructs is called the Task Parallel Library or TPL. This is a necessary addition to .NET is because CPU clock speeds have stagnated and manufacturers have shifted their focus to increasing core counts. This is problematic for us as programmers because our standard single-threaded code will not automatically run faster as a result of those extra cores. That being the case, this article will take a look a parallel programming as done in the C# 4.0 language and the .NET 4.0 runtime.
7 Apr 2010, 21:32:00   Source: Parallel Computing Concepts via C# 4.0   Tags: Performance C#

C# - Delegates 101 - A Practical Example

A practical example not too simple, not too complex, to explain delegates
7 Apr 2010, 09:20:00   Source: C# - Delegates 101 - A Practical Example   Tags: C#

The Dynamic Keyword in C# 4.0

One of the primary aims in C# 4.0 is to increase support for dynamic languages which are making their way into the framework and naturally the dynamic keyword plays an important part…

6 Apr 2010, 14:25:00   Source: The Dynamic Keyword in C# 4.0   Tags: C#

COM Interop Gets Much Better in C# 4.0

Enhanced COM interop through C# 4.0's dynamic type system, support for named and optional parameters, and for variance makes working with Microsoft Office and other Primary Interop Assemblies much easier.
26 Aug 2009, 17:32:02   Source: COM Interop Gets Much Better in C# 4.0   Tags: C#

An Overview of Partial Classes and Partial Methods

Partial classes and partial methods are two programming language features of .NET programming languages that make it possible for developers to extend and enhance auto-generated code. In a nutshell, a partial classes allow for a single classs members to be divided among multiple source code files.

At compile-time these multiple files get combined into a single class as if the classs members had all been specified in a single file. Partial methods are methods defined in a partial class that are (optionally) divided across two files. With partial methods one file contains the method signature - the method name, its return type, and its input parameters - while the body is (optionally) defined in a separate file. If the partial methods body is not defined then the compiler automatically removes the partial method signature and all calls to the method at compile-time…

14 Jul 2009, 19:00:00   Source: An Overview of Partial Classes and Partial Methods   Tags: C# ASP.NET

C# #warning and #error Directives

In some situations you may wish to purposefully cause compilation errors or warnings in your code. For example, a warning indicating that you are compiling in debug mode or an error for deprecated code. These can be added using preprocessor directives.
15 Jul 2008, 14:56:35   Source: C# #warning and #error Directives   Tags: C#

Tracing Events Raised by Any C# Object

.NET Reflection turned out to be a very easy way to get access to the definition of the class I was interested in—or any other class for that matter. It is a simple process to get all the events that a class declares, and then to attach handlers to any or all of the events.

This article presents the simple-but-general event hooking/tracing class I built, which is provided (with a demo) as a download.

6 Jul 2008, 22:56:00   Source: Tracing Events Raised by Any C# Object   Tags: C#

C# Anonymous Methods

C# allows the declaration of delegates. These hold method references that may be changed at run-time and are essential for creating events. It is often the case that the delegate is never changed. In these cases, anonymous methods can simplify code.
3 Jul 2008, 13:13:53   Source: C# Anonymous Methods   Tags: C#