.NET Interop and public static strings

Rob_HansenRob_Hansen Member Posts: 296
edited 2013-02-07 in NAV Three Tier
Greetings -

Does anyone know whether NAV can reference public static strings in .net components? I've built a lot of functionality using a third party .net component through C/AL interop, and it's working great. My last step was to purchase the component and get a license key. I did that, but I am unable to pass the license key into the .net object through C/AL...NAV simply doesn't see the "License" property (which the developers say is a public static string) at all.

Any advice would be appreciated.

Comments

  • BardurKnudsenBardurKnudsen Member, Microsoft Employee Posts: 137
    I checked with the people who implemented this feature, and their reply is
    ”This is by design, in C/AL .net interop you can only access methods, properties, enums and constructors – and not ‘plain’ members/fields of the class.
    As a work around you could either make a wrapper in C# for what you want to access or maybe try to use System.Reflection from C/AL.”
    Bardur Knudsen
    Microsoft - Dynamics NAV
Sign In or Register to comment.