|
|
|
|
|
Total Hits: 818 | Today: 1
|
Author: Joydip Kanjilal
|
Rating:
|
|

Attributes are a mechanism for adding metadata. Reflection is the process by which a program can read its own metadata. This article discusses both these concepts in detail with examples wherever necessary....
|
|
|
|
Total Hits: 82 | Today: 0
|
Author: Panos Kougiouris
|
Rating:
|
|

The .NET Framework Class Library and the common language runtime (CLR) serve as the foundation for all .NET-based applications. But how much do you know about any of the thousands of CLR classes in the library and where do you begin to learn about them?
In this article, the author uses the number of relationships with other types to determine which types are going to affect your programming most frequently and how often you'll encounter them. He programmatically surveys the CLR library us...
|
|
|
|
Total Hits: 84 | Today: 0
|
Author: Stefan Simek.
|
Rating:
|
|

Many developers have found the magic of emitting code at runtime using Reflection.Emit. Also, many have not used it simply because of the complexity of the API. RunSharp (or Run# if you prefer), aims to bring the simplicity and readability of a high-level language such as C# to runtime code generation.
The IL is a great language. However, there are several problems with emitting IL instructions directly. One of them is that it's quite hard to see the actual structure of the generated code...
|
|
|
|
Total Hits: 154 | Today: 0
|
Author: Matt Pietrek
|
Rating:
|
|

As I write this, the Microsoft® .NET initiative is still relatively new (Beta 1 is just out), and early adopters are still finding new nooks and crannies to explore. For myself, many facets of .NET metadata are particularly interesting, and metadata is a natural entry point to understanding many other areas of .NET. Metadata is the information used by the .NET common language runtime (CLR) to describe everything about classes, functions, properties, resources, and other items in an executable fi...
|
|
|
|
Total Hits: 108 | Today: 0
|
Author: Panos Kougiouris
|
Rating:
|
|

The .NET Framework Class Library and the common language runtime (CLR) serve as the foundation for all .NET-based applications. But how much do you know about any of the thousands of CLR classes in the library and where do you begin to learn about them? In this article, the author uses the number of relationships with other types to determine which types are going to affect your programming most frequently and how often you'll encounter them. He programmatically surveys the CLR library using ref...
|
|
|
|
Total Hits: 159 | Today: 0
|
Author: Kel_
|
Rating:
|
|

Recently, while writing an e-commerce web application, I needed to transform the product’s images in some “professional” way, so I decided to add to each product image a well known glass effect table. Since I’m broke, I can’t afford having an artist to modify each image, I decided to write some simple algorithm to do it automatically using GDI+.
This article is more like a code snippet, for you who want do the same in their applications or websites. It’s simple, yet useful!...
|
|
|
|
Total Hits: 82 | Today: 0
|
Author: Marc Clifton
|
Rating:
|
|

This article was inspired by: * Matt Gullett's article A Question Of Quality * Peter's article on Agile Programming Both of these articles have inspired me to do some benchmarking of the three forms of function invocation offered in C#: * Direct call * via a delegate * via reflection As I am in the prototyping stages of an "application automation layer" (The Application Automation Layer: Introduction And Design and The Application Automation Layer - Desi...
|
|
|
|
Total Hits: 43 | Today: 0
|
Author: Adam J. Steinert
|
Rating:
|
|

In the .NET Framework, the CodeDOM object model can represent code in a variety of languages. This article examines how source code templates written with the Framework's System.CodeDom and System.CodeDom.Compiler namespaces allow developers to create reusable boilerplate source code that can be shared between projects. Components designed via templates improve productivity and shorten development time....
|
|
|
|
Total Hits: 40 | Today: 0
|
Author: Joel Pobar
|
Rating:
|
|

Using reflection efficiently is like haggling with an API. You have to pay to play and make some concessions. But it's worth it. Reflection in .NET is one of the most powerful features you can employ to achieve application extensibility. With reflection, you can load types, understand their members, make decisions about them, and execute, all within the safety of the managed runtime. But to use this power wisely, it's important to understand the associated costs and pitfalls....
|
|
|
|
Total Hits: 471 | Today: 0
|
Author: Alexander Turlov
|
Rating:
|
|

In many cases, developers have a demand to call methods testing some conditions before, like, if or switch statements. In most cases, developers call different methods on different conditions. And sometimes, developers need to call different methods either in loops or consequently. All cases mentioned above are covered by this article. Here, you can find several C# code examples that demonstrate how to solve such tasks in an efficient manner. Hope this article will be helpful....
|
|
|
|
Total Hits: 137 | Today: 0
|
Author: Stephen Toub
|
Rating:
|
|

The Xbox Live™ architecture consists primarily of services written using ASP.NET. The many benefits of ASP.NET and the .NET Framework, including rapid development, easy deployment, stability and maintainability, made them ideal technologies to meet the stability, security, and flexibility requirements of Xbox Live. One of the challenges of using managed code on our servers was in developing the network protocol used to talk with Xboxes. These Xbox clients are written primarily in C++ and are opt...
|
|
|
|
Total Hits: 204 | Today: 0
|
Author: Paul Kimmel
|
Rating:
|
|

Web services sit squarely at the cornerstone of Microsoft's marketing initiative for .NET. Web services offer a promise of shared information, cross-platform application integration, and facilitated workflow solutions. These concepts are targeted at business managers, and businesses should be enthusiastic about this technology. However, among technologists the most animated discussions are on the subject of reflection and emitting. .NET reflection supports emitting Microsoft Intermediate Languag...
|
|
|
|
Total Hits: 205 | Today: 0
|
Author: Jon Wojtowicz
|
Rating:
|
|

Reflection is very powerful but relatively slow. The concept of the PropertyComparer can be applied to any comparisons, not only sorting. In the code example I've included a SortableCollectionBase class that allows performing an IndexOf by specifying the field to match. This can also be applied to filtering by return a new list of matching objects. Take a look at the code and imagine the possibilities....
|
|
|
|
Total Hits: 1063 | Today: 0
|
Author: Tin Lam
|
Rating:
|
|

This article is the first part of a four parts series. In first part of this series, author will discuss Reflection from HTML Forms. In other parts of this series, author will discuss Reflection from XML Documents, from Windows Forms, and from Database Tables respectively. Reflection allows us to examine internal details of assemblies and classes at runtime (programmatically)....
|
|
|
|
Total Hits: 2756 | Today: 0
|
|
Rating:
|
|

The Reflection API allows a C# program to inspect and manipulate itself. It can be used to effectively find all the types in an assembly and/or dynamically invoke methods in an assembly. It can at times even be used to emit Intermediate Language code on the fly so that the generated code can be executed directly....
|
|
|
|
Total Hits: 71 | Today: 0
|
Author: AH
|
Rating:
|
|

This article shows a technique to design Windows Service apps with the following goals:
1. Can be debugged like a "Console" application without the need to invoke the "Installer" program. 2. The main "Windows Service" code should be reusable and can be rapidly applied to any new "Windows Service" application development. 3. Separates the "Server Logic" and allows dynamic switching if desired. 4. The details of the "Windows Service" during installation is configurable ...
|
|
|
|
Total Hits: 89 | Today: 0
|
Author: John Mikhail
|
Rating:
|
|

The C# reflection package provides a powerful introspection mechanism that allows class information to be obtained dynamically at run time. However it has a shortcoming in the form of not having dynamic proxy support.
There are instances when functionality needs to be interjected before and/or after a method invocation. However, modifying the code to add those extra calls might not be feasible; whether it’s because the code in question is a third party library, whose source is not availab...
|
|
|
|
Total Hits: 39 | Today: 0
|
Author: Brian Otto
|
Rating:
|
|

In order to create a reliable application you must understand how various components will perform under heavy loads and ensure that the system behaves appropriately. Server components for popular Web sites need to respond to millions of requests per day. Corporate intranets and desktop applications may only need to handle a few hundred or a few thousand requests per day. Many smaller development organizations feel they don't have the time or money to devote resources to building out environments...
|
|
|
|
Total Hits: 85 | Today: 0
|
Author: Dan Bunea.
|
Rating:
|
|

Being a J2EE developer in the past and a very big fan of OOD , I started a few months ago to work in .NET. Now I have seen the .NET data persistence approach, the DataSets, the DataReaders and DataAdapters in ADO.NET, which I consider very powerful when working with more that one record in a table, but I still like using Business Objects in my design, so I wrote a small persistence framework for .NET....
|
|
|
|
Total Hits: 275 | Today: 0
|
Author: siroman.
|
Rating:
|
|

I was often faced with a problem on using System.Windows.Forms.Control objects: we can't perform operation on them in other threads than the one they were created. The only way I found to deal with this problem is to define a delegate and use it to invoke a method on the creation thread of the control (using the ISynchronizeInvoke interface of the Control itself)....
|
|
|
|
|
|