Stories recently tagged with 'Reflection' Subscribe to this feed

IQueryable: Sorting, Paging, Searching and Counting (www.inflecto.co.uk)

submitted by rmmasonrmmason(25) 2 months, 28 days ago

A good post that contains extension methods that add sorting, paging, seacrching and countain functionality to IQueryable objects. read more...

add a comment | category: | Views: 30

tags: another

Exploring Reflection: Using Reflection to find Markers (www.dimecasts.net)

published 5 months, 8 days ago, submitted by dwhittakerdwhittaker(12k) 5 months, 8 days ago

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. read more...

add a comment | category: | Views: 288

tags: another

.NET Reflection - Generic Method Type Inference of a Boxed Parameter (lakario.blogspot.com)

submitted by LakarioLakario(60) 6 months, 9 days ago

A look into calling a generic method with a boxed parameter and returning a strongly typed, unboxed instance of that method using System.Reflection. read more...

add a comment | category: | Views: 23

tags: another

Using the CodeDom to do scripting with .Net (msmvps.com)

submitted by JoacimJoacim(225) 7 months, 24 days ago

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 formats, CSV files (or other delimited text files), Access database, Excel Spreadsheets, and so on. Sometimes the files are zipped and sometimes not. Sometimes the files are uploaded to us via FTP and at other times we need to pull the data, also usually via FTP. read more...

add a comment | category: | Views: 32

tags: another

Weekly Tool Tip: Introducing .NET Reflector (www.myviewstate.net)

submitted by kevinbabcockkevinbabcock(340) 8 months, 24 days ago

An introductory look at .NET Reflector read more...

1 comment | category: | Views: 8

tags: another

Cloning Object Properties via Reflection « {Programming} & Life (goneale.wordpress.com)

submitted by gonealegoneale(1040) 11 months, 24 days ago

I had a case today where I needed to clone all properties of an object from one class to another of different types. read more...

add a comment | category: | Views: 19

tags: another

Using Reflection to load unreferenced assemblies at runtime in C# (www.codeproject.com)

submitted by crpietschmanncrpietschmann(11.1k) 1 year ago

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 reference will be added post-build. One of the functions of the System.Reflection namespace is loading assemblies and accessing their contained types. read more...

add a comment | category: | Views: 24

tags: another

FromKnownColor in the Compact Framework (blog.dotnettech.net)

submitted by StrangeJaxStrangeJax(15) 1 year ago

This blog post cleverly uses LINQ and Reflection to implement the missing method FromKnownColor in the Compact Framework read more...

add a comment | category: | Views: 14

tags: another

Adding Save() functionality to Microsoft.Net.Mail.MailMessage (www.codeproject.com)

submitted by jamesewelchjamesewelch(2265) 1 year ago

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. read more...

add a comment | category: | Views: 57

tags: another

C# Reflection : Fast Object Creation (blogs.msdn.com)

submitted by ziadelmalkiziadelmalki(125) 1 year, 1 month ago

Fastest way to create a late latebound object in C# read more...

add a comment | category: | Views: 145

tags: another

Howto make unique Repository for all LinqToSql entities (GetById part) (blog.dynback.com)

submitted by StackOverflowStackOverflow(200) 1 year, 2 months ago

Tutorial about howto make Rep<Person>.GetById(personId)! read more...

add a comment | category: | Views: 31

tags: another

Creating instance of object dynamically in C# (neutrongenious.spaces.live.com)

submitted by secretssecrets(80) 1 year, 3 months ago

The article will help you to create any instance of a any object dynamically using Reflection and generics. You will learn how to apply constraints in generics. read more...

add a comment | category: | Views: 209

tags: another

How to iterate thought all properties of a class (www.dotnetfunda.com)

submitted by dotnetfundadotnetfunda(1575) 1 year, 5 months ago

The purpose of this article is to describe some of the practical uses of the Reflection. read more...

add a comment | category: | Views: 16

tags: another

Using Generics to Copy Data Between Classes of Different Types (www.alteridem.net)

submitted by rprouserprouse(1165) 1 year, 6 months ago

The latest in a series of posts exploring how we can reduce the grunt work in copying data between the data layer classes and the user interface classes. This uses a fluent interface to copy all of the data in one line of code rather than property by property. read more...

add a comment | category: | Views: 17

tags: another

Method to Copy Data Between Objects of Different Types (www.alteridem.net)

submitted by rprouserprouse(1165) 1 year, 6 months ago

One thing that I find tiresome when using the various Model/View patterns is the constant copying of data between the model and the view. This is the first post in a series on a possible easier way to do this. In this post I write a method that copies the data from one interface to another based on the names and types of the properties. Over the next few posts, I will extend the code to use generics and extension methods. read more...

add a comment | category: | Views: 31

tags: another

Stuff in Reflection that's not in Metadata (blogs.msdn.com)

submitted by crpietschmanncrpietschmann(11.1k) 1 year, 8 months ago

Previously, I mentioned some things in Metadata that aren't exposed in Reflection. Here's an opposite case. While metadata represents static bits on disk, Reflection operates in a live process with access to the CLR's loader. So reflection can represent things the CLR loader and type system may do that aren't captured in the metadata. read more...

add a comment | category: | Views: 3

tags: another