Reflection -The Constructor

Remember, last week we started a series on using Reflection in our .NET applications.  We’ve loaded the assembly already, so the next step is creating the object.  Today’s tutorial will show how to instantiate the object using the default constructor and then quickly move on to using the parameterized constructor.

Related Post

  • Reflection – Loading The AssemblyReflection – Loading The Assembly Recently, I received a question from a web visitor asking me to cover reflection.  So, I'm going to start a series on reflection.  Remember, if you have any questions you can ask me using...
  • Reflection and InterfacesReflection and Interfaces Today is the last official installment in the series on reflection.  If you've been following along, you've probably notice that calling code in other classes using reflection is a huge pain i...
  • Reflection – Accessing MethodsReflection – Accessing Methods Today is the next to last installment on reflection.  We will look at how to call methods and pass parameters.  This is going to look a lot like what we've already done in previous sessio...
  • Reflection From a DLL and SerializationReflection From a DLL and Serialization Last week, we finished up our main series on reflection.  For most people, what we covered is all they will ever need.  However, there are a few other things I've needed to know due mainl...
  • Using Reflection to Load a Class in ASP.NETUsing Reflection to Load a Class in ASP.NET Last week, we took a look at creating a DAL that would allow us to swap out database providers without having to rewrite a lot of our code.  The only problem with the code I showed you is that...