// // // // // $Revision: 934 $ // using System; using System.Collections; namespace ICSharpCode.Core { /// /// Creates object instances by invocating a type's parameterless constructor /// via System.Reflection. /// /// /// The fully qualified type name of the class to create an instace of. /// /// Everywhere where objects are expected. /// /// Any kind of object. /// public class ClassDoozer : IDoozer { /// /// Gets if the doozer handles codon conditions on its own. /// If this property return false, the item is excluded when the condition is not met. /// public bool HandleConditions { get { return false; } } public object BuildItem(object caller, Codon codon, ArrayList subItems) { return codon.AddIn.CreateObject(codon.Properties["class"]); } } }