using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SharpDX.DirectManipulation { partial class Manager2 { public Manager2() : base(IntPtr.Zero) { Utilities.CreateComInstance(ManagerClassId, Utilities.CLSCTX.ClsctxInprocServer, Utilities.GetGuidFromType(typeof(Manager2)), this); } /// /// Factory method to create a behavior. /// /// The type of the COM object to create. /// CLSID of the behavior. The CLSID specifies the type of behavior. /// public T CreateBehavior(Guid classId) where T : ComObject { IntPtr temp; CreateBehavior(classId, Utilities.GetGuidFromType(typeof(T)), out temp); return ComObject.FromPointer(temp); } } }