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


Home >Search > Articles & Samples > Visual Basic.Net > Reflection


Search:
What's New - What's Hot
Reflection and Generics  Version: 0.00     Price: $0.00  
Total Hits: 25  |  Today: 0Author: Ken Getz      Rating:  
Read Reviews | Write Review |  Your Rating: 

Knowing that I love to play with such things, a friend recently asked me to help write a simple tool that could export to Microsoft® Excel® a sortable list of all the members of a new assembly that she was required to document. The tool needed to provide information about the properties, methods, events, and interfaces, and list all the parameters for each of the members. Having played with reflection before, it seemed like fun....

Inspecting COM Objects With Reflection  Version: 0.00     Price: $0.00  
Total Hits: 22  |  Today: 0Author: Lucian Wischik      Rating:  
Read Reviews | Write Review |  Your Rating: 

Many of you have felt the frustration of trying to get COM to work. You've also felt the joy that comes when you're successful. A common trick for understanding how an object works is to inspect it using the reflection capabilities of the Microsoft .NET Framework. In some cases, .NET reflection also works on COM objects. Look at the following code to see what I mean. The code uses .NET reflection to obtain and display a list of members in the object...

Using GetAssemblyInfo to locate and instantiate a variable, using Reflection     
Total Hits: 149  |  Today: 0Author: rj45      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below....

Reflection in Visual Basic .NET     
Total Hits: 75  |  Today: 0Author: Ted Pattison      Rating:  
Read Reviews | Write Review |  Your Rating: 

In the May 2005 Basic Instincts column I wrote about the Microsoft® .NET Framework support for custom attributes and attribute-based programming (see Basic Instincts: Designing With Custom Attributes). I discussed how the inclusion of attributes in the .NET Framework programming model gives Microsoft and third-party developers a powerful way to extend the metadata that is compiled into assemblies. This extensibility opens up opportunities for designs that leverage attribute-based programming....

Creating Dynamic Factories in .NET Using Reflection     
Total Hits: 184  |  Today: 0Author: Romi Kovacs      Rating:  
Read Reviews | Write Review |  Your Rating: 

Design patterns are a powerful tool for designing flexible soft-ware. They provide well-tested solutions to recurring software design problems. One such widely used pattern is the Concrete Factory. The Factory pattern decouples objects from knowledge about the creation of other objects or even the underlying type of those objects. Too often, however, the Factory pattern is not applied optimally, creating subtle coupling and low cohesion issues between various participants of the pattern. In this...

Reading Query String Parameters using Custom Attributes and Reflection     
Total Hits: 406  |  Today: 0Author: CodeChimp.      Rating:  
Read Reviews | Write Review |  Your Rating: 

I always like to keep a balance between easy to read code and reducing the amount of repetitive work I have to do to achieve something fast. If it’s too complicated to read and understand in a few minutes its going to make support difficult. This article describes a technique I use to achieve these two goals when it comes to dealing with Query Strings in asp.net. It’s an easy to plug in helper class that’s easy to follow with little setup/method calls required....

Refreshing project references with a Macro     
Total Hits: 205  |  Today: 0Author: Gustavo Bonansea.      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article show you how to write a macro that refreshes all the references of a solution. This is useful when you have a lot of projects with interrelated DLL references between them. So when you have DLL versions problems, you refresh all the references of the solution an solve it....

Prevent Cross-Thread operation not allowed exception through reflection     
Total Hits: 452  |  Today: 0Author: siroman.      Rating:  
Read Reviews | Write Review |  Your 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)....

Dynamically Bind Your Data Layer to Stored Procedures and SQL Commands Using .NET Metadata and Reflection     
Total Hits: 503  |  Today: 0Author: Atif Aziz      Rating:  
Read Reviews | Write Review |  Your Rating: 

One major inconvenience of using SQL stored procedures from code is having to match type information. You have to write long wrapper functions around the procedures just to expose the data types. In the .NET Framework, however, the reflection services of the System.Reflection namespace allow you to query rich metadata that describe data types. This article explains how to use reflection in .NET to end your stored procedure nightmares. The author creates four custom classes, including one that ge...

Mirror, Mirror     
Total Hits: 170  |  Today: 0Author: Rockford Lhotka      Rating:  
Read Reviews | Write Review |  Your Rating: 

In the original Star Trek series, there was an episode titled Mirror, Mirror in which Captain Kirk is split into two halves—a good half and an evil half. Through the episode, we learn that a complete and competent Captain Kirk needs both the light and dark sides of his personality. The same is true of Microsoft .NET, especially when we come to a technology known as Reflection. Reflection allows us to write code that can dynamically examine a data type or an object at runtime. We can get a list o...

Reflection in Visual Basic .NET     
Total Hits: 202  |  Today: 0Author: Ted Pattison      Rating:  
Read Reviews | Write Review |  Your Rating: 

In the May 2005 Basic Instincts column I wrote about the Microsoft® .NET Framework support for custom attributes and attribute-based programming (see Basic Instincts: Designing With Custom Attributes). I discussed how the inclusion of attributes in the .NET Framework programming model gives Microsoft and third-party developers a powerful way to extend the metadata that is compiled into assemblies. This extensibility opens up opportunities for designs that leverage attribute-based programming. Th...

Reflection in Visual Basic .NET     
Total Hits: 219  |  Today: 0Author: Ted Pattison      Rating:  
Read Reviews | Write Review |  Your Rating: 

In the May 2005 Basic Instincts column I wrote about the Microsoft® .NET Framework support for custom attributes and attribute-based programming (see Basic Instincts: Designing With Custom Attributes). I discussed how the inclusion of attributes in the .NET Framework programming model gives Microsoft and third-party developers a powerful way to extend the metadata that is compiled into assemblies. This extensibility opens up opportunities for designs that leverage attribute-based programming....

Reflection in Visual Basic .NET  Version: 0.00     Price: $0.00  
Total Hits: 23  |  Today: 0Author: Ted Pattison      Rating:  
Read Reviews | Write Review |  Your Rating: 

In the May 2005 Basic Instincts column I wrote about the Microsoft® .NET Framework support for custom attributes and attribute-based programming (see Basic Instincts: Designing With Custom Attributes). I discussed how the inclusion of attributes in the .NET Framework programming model gives Microsoft and third-party developers a powerful way to extend the metadata that is compiled into assemblies. This extensibility opens up opportunities for designs that leverage attribute-based programming....

Dumping an Object's State with Reflection and Extension Methods  Version: 0.00     Price: $0.00  
Total Hits: 24  |  Today: 0Author: Paul Kimmel      Rating:  
Read Reviews | Write Review |  Your Rating: 

Programmers have a lot of problems to manage. Programmers have to manage their time by getting the most out of the least amount of code. Programmers also have to write code that appeals to users in terms of its responsiveness, correctness, and utility. Balancing writing reusable general-purpose code to meet deadlines and budgets with the end users' needs is part of what makes software development challenging....

Speed Up Your Reflection Processes  Version: 0.00     Price: $0.00  
Total Hits: 19  |  Today: 0Author: Paul Kimmel      Rating:  
Read Reviews | Write Review |  Your Rating: 

I write about real problems that real programmers have, and in so doing I try to show you, the reader, alternate solutions that provide you with options. Hearing back from you that the article and solution helped makes it worth writing....

Assembly Spy; a Reflection Sample  Version: 0.00     Price: $0.00  
Total Hits: 32  |  Today: 0Author: Mohammad Elsheimy      Rating:  
Read Reviews | Write Review |  Your Rating: 

Assembly Spy is a very nice simple application written in VB.NET that uses reflection to dynamically inspect assemblies and list the containing types and members of the selected type.

The following figure shows application’s only window loading .NET 2.0 mscorlib.dll and lists members of System.String....

Searching Generic Objects and Collections using Reflection and Generic Predicates     
Total Hits: 91  |  Today: 0Author: werD      Rating:  
Read Reviews | Write Review |  Your Rating: 

As .NET developers, we are constantly working with collections of objects in some form or fashion. Most objects (if not all) can be represented by a collection properties or attributes of some sort. The .NET framework has provided us from the beginning with the ability to create specialized collections of objects. These objects can encapsulate and implement features which allow them to be more easily exchanged, filtered, or sorted by different controls and/or code. For a typical smaller project ...

Access External Private Members without Reflection Permissions     
Total Hits: 232  |  Today: 0Author: coccide      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article shows how you can gain access to all the private and protected members of a class (public or not) defined in an external assembly.

You can use this technique for testing your private methods (if you like) or to take a look over the internal structure of an object that you can't access....

Reflection in Visual Basic .NET     
Total Hits: 125  |  Today: 0Author: Ted Pattison      Rating:  
Read Reviews | Write Review |  Your Rating: 

In the May 2005 Basic Instincts column I wrote about the Microsoft® .NET Framework support for custom attributes and attribute-based programming (see Basic Instincts: Designing With Custom Attributes). I discussed how the inclusion of attributes in the .NET Framework programming model gives Microsoft and third-party developers a powerful way to extend the metadata that is compiled into assemblies. This extensibility opens up opportunities for designs that leverage attribute-based programming.

Reflection and Generics     
Total Hits: 142  |  Today: 0Author: Ken Getz      Rating:  
Read Reviews | Write Review |  Your Rating: 

Knowing that I love to play with such things, a friend recently asked me to help write a simple tool that could export to Microsoft® Excel® a sortable list of all the members of a new assembly that she was required to document. The tool needed to provide information about the properties, methods, events, and interfaces, and list all the parameters for each of the members. Having played with reflection before, it seemed like fun.

As I began, though, I kept finding member names that were fo...


1  2  Next >> 


Disclaimer - Privacy
© 2002-2017 DevASP.net