Szymon Kobalczyk's Blog

A Developer's Notebook

  Home  |   Contact  |   Syndication    |   Login
  84 Posts | 5 Stories | 164 Comments | 380 Trackbacks

News

View Szymon Kobalczyk's profile on LinkedIn

Twitter












Article Categories

Archives

Post Categories

Image Galleries

Blogs I Read

Tools I Use

Today I've started learning for the MCTS Exam 70-536: Application Development Foundation. My goal is to pass this exam by the end of this month. After all I've been programming in .NET since it's first public beta so I should already know all the “.NET fundamentals“ by heart. But you never know, so I will spend some time to revise this material.

In fact I've already stumbled upon one thing I didn't knew existed. It appears that in .NET 2.0 CLR compilers gained new feature called “Type forwarding“. In short new custom attribute TypeForwardedTo allows to move implementation of a class from one assembly to another, while preserving original references. You can read more on Junfeng Zhang's blog. At first glance it seemed cool but now I don't really understand how this can be useful. Maybe anyone here had opportunity to use it and could clarify on that.

posted on Saturday, July 01, 2006 8:19 PM

Feedback

# re: .NET Fundamentals: Type forwarding 10/27/2006 10:43 PM John Askew
I've not used this feature or attribute either but I like to use a funny metaphor for it.

South Park's episode with World of Warcraft showed how in desperation, a secret weapon was introduced to the game from a USB drive. This is an example of type forwarding, isn't it?

A bit out there, I know... :)

# re: .NET Fundamentals: Type forwarding 6/13/2007 6:28 AM 007
http://community.bartdesmet.net/blogs/bart/archive/2006/09/30/4479.aspx

# re: .NET Fundamentals: Type forwarding 12/18/2007 6:34 AM dileep
Imagine the following situation: you've created a large software library with lots of types defined in it and lots of people are using it already. However, the library has become so bloated due to its size, it becomes more and more difficult to maintain it. So, you want to split the existing library into multiple assemblies, but without breaking any existing consumer applications.



# re: .NET Fundamentals: Type forwarding 3/5/2008 4:17 PM V Klassen
I was also strugling with the concept until I came across this article
http://www.xhydra.com/mcts-70-536/type-forwarding.html

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 7 and 3 and type the answer here: