1. Olaf Brungot
  2. PowerBuilder
  3. Thursday, 27 January 2022 12:01 PM UTC


As far as I can see from the documentation, it is not supported to use .Net interfaces.

Calling a .Net assembly seems straightforward, but is it possible to call a .Net Assembly which has an interface in the constructor?

Example of class

namespace PowerBuilder.Test
public class TestClass : ITestClass
private readonly IUnitOfWork _uow;

public TestClass(IUnitOfWork uow)
_uow = uow;



lcs_service.LoadWithDotNetFramework ("PowerBuilder.Test.dll")
lcs_service.createinstance("PowerBuilder.Test.TestClass", lcs_objservice, ???)

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 27 January 2022 13:24 PM UTC
  2. PowerBuilder
  3. # 1

Hi Olaf, you need to create a wrapper.  I recommend you watch this Elevate tech session: https://www.appeon.com/developers/library/videos/net-assembly-importer.html


There are no comments made yet.
  • Page :
  • 1

There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.