Developer code samples

Download code samples and demo applications for windows and other products which uses the .Net Runtime Library for Delphi.



Search Value

assembly

How to use .Net Reflection to Open and Close SqlConnection in Delphi

This demo shows how to use .Net reflection in Delphi to load System.Data assembly, load and create instance of SqlConnection type, set the connectionString property of the SqlConnection and invoke the open and close method of the SqlConnection instance.


50 Downloads | Updated 10/05/2018 | Tags , , , ,

How to create Instance of .Net Objects

In order to interact with .Net Objects's methods, properties, Fields and events, you need to create an instance of the object. There are several ways to Create an Instance of a .Net Object in Delphi using the .Net Runtime Library for Delphi.

200 Downloads | Updated 07/04/2018 | Tags , , , , ,

How to obtain Type and Member Information from an Assembly

The CNClrLib.Host and CNClrLib.Core units contain many methods for obtaining information from an assembly. This section demonstrates one of these methods.

73 Downloads | Updated 07/04/2018 | Tags , , ,

How to load .Net Assemblies from Delphi

There are several ways to load an assembly into an application domain using the .Net Runtime Library for Delphi. The recommended way is to use the static Load method of the TClrAssembly class (Declared in CNClrLib.Host unit).

246 Downloads | Updated 07/04/2018 | Tags , , , , ,