Multiple choice technology programming languages

COM objects can be called in C# using :

  1. DLLImport

  2. UsingDLL

  3. DLLCall

  4. CallDLL

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

DllImport is the attribute used in C# to call methods from unmanaged code, including COM objects and native DLLs. The syntax is [DllImport("dllname.dll")] for external method declarations. The other options (UsingDLL, DLLCall, CallDLL) are not valid C# keywords or attributes.