Skip to content

consultingwerk/ReflectionHelperOSS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReflectionHelperOSS

ABL helper class to simplify routine tasks with .NET Reflection

The Consultingwerk.Util.ReflectionHelper allows usage of Telerik Generic methods, such as the GetService Method of the RadGridViewElement class.

Progress does currently not intend to provide this functionality as part of the ABL (http://knowledgebase.progress.com/articles/Article/000057503?popup=true)

API Reference

The ReflectionHelper is part of the SmartComponent Library from Consultingwerk (http://www.consultingwerk.de). The API is described here:

http://help.consultingwerkcloud.com/smartcomponent_library/release/Consultingwerk.Util.ReflectionHelper.html

Code sample:

DEFINE VARIABLE oRadGridView        AS RadGridView        NO-UNDO . 
DEFINE VARIABLE oRadGridViewElement AS RadGridViewElement NO-UNDO.

DEFINE VARIABLE oService AS RadGridViewDragDropService NO-UNDO . 

/* ***************************  Main Block  *************************** */

oRadGridView = NEW RadGridView () . 
oRadGridViewElement = oRadGridView:GridViewElement  . 

/* C#: oService = oRadGridViewElement<RadGridViewDragDropService> (); 
   Note that C# does not require to CAST the return value due to the 
   dynamic and at the same time static nature of the generic method
   return type definition. */
oService = CAST (ReflectionHelper:InvokeGenericMethod (oRadGridViewElement, 
                                                       "GetService":U,
                                                       "Telerik.WinControls.UI.RadGridViewDragDropService":U),
                 RadGridViewDragDropService) .

About

ABL helper class to simplify routine tasks with .NET Reflection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published