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.
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:
Post Comments (Atom)
No comments:
Post a Comment