Saturday, October 29, 2005

Type.GetType vs object.GetType() vs typeof()

On the aus-dotnet list someone asked how much slower Type.GetType(string) was compared to GetType() / typeof().

About 100 times slower, as it turns out:

http://www.stillhq.com/aus-dotnet/archives2/msg11648.html


What's interesting is the difference between object.GetType() and typeof() - not enough to worry about, but typeof() is definately the go if you can use it.

No comments:

Popular Posts