---
title: "Strongly Typed Reflection Calls in .NET 2.0"
url: "https://osherove.com/blog/2005/10/30/strongly-typed-reflection-calls-in-net-20.md"
canonical: "https://osherove.com/blog/2005/10/30/strongly-typed-reflection-calls-in-net-20.html"
published: "2005-10-30T00:10:00"
updated: "2005-10-30T00:10:00"
tags: [".Net 2.0", ".Net Quotations"]
author: "Roy Osherove"
description: "Oren Eini is trying to cheat Reflection , that is, create his own, \"strongly typed\" version of reflection, and what he's done so far seems like a very cool and nice workaround: \" I don't like strings and Reflection. In…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Strongly Typed Reflection Calls in .NET 2.0

By Roy Osherove October 30, 2005 In [.Net 2.0](https://osherove.com/blog/category/net-2-0), [.Net Quotations](https://osherove.com/blog/category/net-quotations)

**Historical article** · Originally published October 30, 2005; technical details may be outdated.

[Oren Eini is trying to cheat Reflection](http://www.ayende.com/Blog/PermaLink,guid,77361179-d764-4a34-a33c-df19add9792b.aspx), that is, create his own, "strongly typed" version of reflection, and what he's done so far seems like a very cool and nice workaround:

_" I don't like strings and Reflection. In fact, you could say that I hate them with a passion. I hate them because they hide important information from the compiler. This post is actually not a rant, it presents a solution to the problem._

_I hate them so much that I wrote my own_ [_Mocking Framework_](http://www.ayende.com/Blog/ct.ashx?id=77361179-d764-4a34-a33c-df19add9792b&url=http%3a%2f%2fwww.ayende.com%2fprojects%2frhino-mocks.aspx) _that don't use strings at all. .Net has some really great stuff that you can do with Reflection, but it has two **big** problems._

- _It is a performance hit._
- _It uses strings. "_

Read how he solves this [in his blog post](http://www.ayende.com/Blog/PermaLink,guid,77361179-d764-4a34-a33c-df19add9792b.aspx).

## More in .Net 2.0

[All posts in .Net 2.0](https://osherove.com/blog/category/net-2-0)

- Nov 4, 2005

    ### [My first real frustration with VS 2005 RTM](https://osherove.com/blog/2005/11/4/my-first-real-frustration-with-vs-2005-rtm.html)

- Oct 30, 2005

    ### [Amazoner 1.0.1 - Larger Images for Books and a dedicated website](https://osherove.com/blog/2005/10/30/amazoner-101-larger-images-for-books-and-a-dedicated-website.html)

- Oct 27, 2005

    ### [Representing void methods with generic delegates](https://osherove.com/blog/2005/10/27/representing-void-methods-with-generic-delegates.html)

- Oct 21, 2005

    ### [Nice Guidance Automation kit hands on lab from TechEd (with a fix for a build problem it contains)](https://osherove.com/blog/2005/10/21/nice-guidance-automation-kit-hands-on-lab-from-teched-with-a.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
