Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.
Showing posts with label C# Casting. Show all posts
Showing posts with label C# Casting. Show all posts
Sunday, March 2, 2008
Unable to cast object of type Foo to object of type Foo
I would get the error: Unable to cast object of type Foo to object of type Foo in my dynamic control. I read some problems about that kind of error and it said to make sure the Control was set to null before the cast. No error afterwards, at least so far.
Subscribe to:
Posts (Atom)