Forum Discussion

PrathyushaCH's avatar
PrathyushaCH
Occasional Contributor
2 years ago
Solved

How to access Private and Protected methods from an imported DLL

Hi, Iam trying to access the methods from an imported DLL which i added in CLR Bridge section. First question is 'Is it possible to access?' if so how to do it using C# script. Thank you!
  • rraghvani's avatar
    rraghvani
    2 years ago

    In most programming languages, there are three access modifiers:

    Public - the property or method can be accessed from everywhere. This is default.

    Protected - the property or method can be accessed within the class and by classes derived from that class. 

    Private - the property or method can ONLY be accessed within the class.

    You won't be able to access protected or private members.