var p = Activator.CreateInstance( Type.GetType( sClass ), parentObject, parentID );
LayoutItem p1 = (LayoutItem)p;
p1.Load( x );
Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
Showing posts with label c# - Activator class. Show all posts
Showing posts with label c# - Activator class. Show all posts
Tuesday, April 19, 2022
c# - How to create instance with string class name
String variable sClass contains for example Box.LayoutItem string. ParentObject and ParentID are optional constructor parameters.
Subscribe to:
Posts (Atom)