By tag: reflection
0
kicks
Invoking Overloaded Methods Using Reflection
Static and instance methods can be invoked via reflection by obtaining a MethodInfo object for the desired member and calling the Type class's Invoke method. When invoking overloaded methods, the call to obtain the method information must be modified.
0
kicks
Advanced Programming with C#
This is the third part of a series of tutorials on C#. In this part we are going to discuss exciting features of C# like dynamic programming using the DLR or using the meta-data information known as reflection. We will also extend our knowledge on the .NET-Framework by getting to know the abstract S...
0
kicks
Identifying the Namespaces in an Assembly
Sometimes it is necessary to find the names of all of the namespaces that are defined in a .NET assembly. Although reflection does not provide a method for this purpose, it is possible to get this information indirectly.
0
kicks
Manipulating Properties and Methods with Reflection
Today I’m going to write about a simple yet powerful way to manipulate properties and methods of a given type. We’ll set values to properties and invoke methods through the use of reflection. Maybe you haven’t had the chance to use reflection or maybe you even don’t know what is reflection. Reflecti...
0
kicks
Binding to Anonymous types in Silverlight
Talks about the problems with binding against anonymous types in Silverlight, and offers some possible solutions to the issues.
0
kicks
Catastrophic failure : Reflection and Indexers
How to access arrays using default indexer trough reflection.
0
kicks
IQueryable: Sorting, Paging, Searching and Counting
A good post that contains extension methods that add sorting, paging, seacrching and countain functionality to IQueryable objects.
0
kicks
Exploring Reflection: Using Reflection to find Markers
Taking a look at how to find various markers (interfaces and attributes) on a class by using reflection. This technique can help you to build out dynamic loading/find type of logic in your pluggable applications.
0
kicks
.NET Reflection - Generic Method Type Inference of a Boxed Parameter
A look into calling a generic method with a boxed parameter and returning a strongly typed, unboxed instance of that method using System.Reflection.
0
kicks
Using the CodeDom to do scripting with .Net
The company I work for, Interactive Medica, provides SaaS business solutions for the pharmaceutical industry. Many of our clients receive data from third-parties which they need us to import into our system. This is pretty straight-forward and common in many industries. The data arrives in different...
0
kicks
Cloning Object Properties via Reflection « {Programming} & Life
I had a case today where I needed to clone all properties of an object from one class to another of different types.
0
kicks
Using Reflection to load unreferenced assemblies at runtime in C#
Sure, we can define our application's referenced assemblies easily, but how would we interact with types in assemblies at runtime that we don't directly reference? This can be quite a problem for someone who is creating plug-in or add-on support for their application, where the assemblies they must ...
0
kicks
FromKnownColor in the Compact Framework
This blog post cleverly uses LINQ and Reflection to implement the missing method FromKnownColor in the Compact Framework
0
kicks
Adding Save() functionality to Microsoft.Net.Mail.MailMessage
The MailMessage class provides functionality using the SmtpDeliveryMethod.SpecifiedPickupDirectory of SmtpClient to generate the emails to a file folder. However, I needed to control the filename used to output the email instead of using the SmtpClient's random Guid() approach.