I have multiple classes, all residing in a distinct namespace. All classes derive from the same base class, all have the same function, accepting the same parameters. I would like to be able to iterate through the classes, calling said function. I know I can get a list of the classes using the following: var validationClasses = Assembly.GetExecutingAssembly().GetTypes() .Where(t =&gt; t.Namespace == &quot;Panther.Business.Shipping.Validate&quot;) .ToList();  And, of course, I can iterate through each class in validationClasses. But I can’t figure out how to instantiate an instance of each class, and call that function. Any direction greatly appreciated.
One may not always know the Type of an object at compile-time, but may need to create an instance of the Type.    How do you get a new object instance from a Type?
Do I need a transit visa at Istanbul Airport to enter Istanbul for city sightseeing or hotel accommodation?. All services provided free by the Turkish Airline. I am Nigerian citizen and booked Turkish Airline flight to Nigeria with 12hours layover at Istanbul Airport. How we can compare two coefficients of one linear regression? How to see data from .RData file? Inno Setup: How to manipulate progress bar on Run section? How to Implement Page Object and Page Factory Pattern in Selenium Webdriver? How can anything ever fall into a black hole as seen from an outside observer? The event horizon of a black hole is where gravity is such that not even light can escape. This is also the point I understand that according to Einstein time dilation will be infinite for a far-away-observer.  If this is the case how can anything ever fall into a black hole.  In my thought experiment I am in a spaceship with a powerful telescope that can detect light at a wide range of wavelengths.  I have it focused on the black hole and watch as a large rock approaches the event horizon.  Am I correct in saying that from my far-away-position the rock would freeze outside the event horizon and would never pass it? If this is the case how can a black hole ever consume any material, let alone grow to millions of solar masses.  If I was able to train the telescope onto the black hole for millions of years would I still see the rock at the edge of the event horizon?  I am getting ready for the response of the object would slowly fade.  Why would it slowly fade and if it would how long would this fading take?  If it is going to red shift at some point would the red shifting not slow down to a standstill? This question has been bugging me for years!  OK - just an edit based on responses so far.  Again, please keep thinking from an observers point of view.  If observers see objects slowly fade and slowly disappear as they approach the event horizon would that mean that over time the event horizon would be "lumpy" with objects invisible, but not passed through?  We should be able to detect the "lumpiness" should we not through? Every time I install a new Linux kernel, it gets left in the grub_config, making the boot menu longer each time.    I know I can manually search through the installed packages and remove them.  Does Ubuntu provide any easier way to clean them up or keep them from showing in the boot list? Can't save my render as an image I seem to be having issues when I try and save the output file as a .png, or .jpeg for that matter. I've set up my user preferences, File, Render Output to my desktop as well as render output in the editor window. What am I missing here? I'm obviously very new to this program and your help would be appreciated. Thanks for your time Ok. I was playing mcpe and I noticed that mossy cobblestone isn't in the crafting table. And I wanted to make a house that looks old. So if its possible to get mossy cobblestone without mods, how can I get it on survival? If it is possible can somebody please leave a step by step guide. Thank you. I am about to sell my old desktop PC and I am cautious about some of my sensitive information being available to the purchaser, even after reformatting the hard-drive, using data recovery software.  How can I securely wipe the hard drive so that the data on it cannot be recovered?  Although I specifically want help with my Windows PC, it wouldn't hurt if there were suggestions for Macs as well. Who can see what in my profile? When editing my user profile (name, date of birth, etc.), how can I tell which information can be seen by other users (publicly visible) and what is only used by the system (and how it's used)? Inverse of $y = x^3 + x $? Can you help me find the inverse function for $y = x^3 + x$?  This question was posed at the beginning of AP Calculus, so we can't use any math beyond precalc.  Thanks! Is it true every ideal of $\mathbb{Z}[x]$ is finitely generated? Let $I$ be any ideal of $\mathbb {Z}[x]$, and $I=\left&lt;{f_1,f_2 , ...}\right&gt;$.  Without loss of generality, $f_1$ has minimal (absolute value) coefficient of constant term (if there exist).  Then, let $g$ be any element of $I$ .  We have for some integer $m$ that $g - mf_1$ is element of $I$ (minimal coefficient and division algorithm).  I guess this process terminate finitely, but I don't know how can I do next step.  ( ex. $g-mf_1, g-mf_1-nf_2, ...$)  Please help me and thanks for in advance. How can I stream the same music to multiple computers? Is there a way to stream the same playlist on multiple computers at the same time? I want to be able to sync what's playing on multiple computers (for parties etc). Why is the field inside a conducting shell zero when only external charges are present? How do I increase the size of swapfile without removing it in the terminal? Finite choice without AC Can anyone explain how we choose one sock from each of finitely many pairs without the axiom of choice?  I mean : To choose one sock from each of infinitely many pairs of socks requires the Axiom of Choice, but for shoes the Axiom is not needed.  The idea is that the two socks in a pair are identical in appearance, and so we must make an arbitrary choice if we wish to choose one of them. For shoes, we can use an explicit algorithm -- e.g., "always choose the left shoe." Why does Russell's statement mention infinitely many pairs? Well, if we only have finitely many pairs of socks, then AC is not needed -- we can choose one member of each pair using the definition of "nonempty," and we can repeat an operation finitely many times using the rules of formal logic (not discussed here). What is the electric charge of the Sun and its corona? How to solve this ode $xy''-(1+x)y'+y=x^2$? Bernoulli numbers, taylor series expansion of tan x I found the following formula here: .  Taylor series of $\tan x$:  $$\tan x = \sum_{n\,=\,1}^\infty \frac {(-1)^{n-1}2^{2n} (2^{2n}-1) B_{2n}} {(2n)!} x^{2n - 1} $$.  I do not understand what the Bernoulli number means in this formula. My problems are the following ones:  I do not know anything about Bernoulli numbers. I do not know how to expand the Bernoulli number in the formula you see further up. What expansion will be the final result? How did you arrive there? Why did you arrive there? How did you know that you should use the specific Bernoulli-related terms that you used in your answer? What is the purpose of the Bernoulli number in this formula?  A great deal of thanks.