Search  
Thursday, August 07, 2008 ..:: Blogs ::.. Register  Login
Site Navigation

.NET Tips
Author: KDollard Created: 8/2/2006
Tips as I encounter and work around frustrations in .NET. These will often be relatively advanced.

CreateInstance requires an Instance binding flag
By Kathleen Dollard on 8/1/2006

I was beating my head against Activator.CreateInstance this morning. It was just telling me the constructor didn’t exist, when I knew it existed. The constructor in this case is private to prohibit any use outside the class. I’m using CreateInstance when I’m creating the class from its generic base class. It also has parameters, so the simplest overload I can use is

 

More...

Blog_List
Search_Blog
Blog_Archive
Copyright (c) 2008 The Source For Information On Code Generation in Microsoft .NET   Terms Of Use  Privacy Statement