Native Keyword

What is native keyword in C#?

Questions by shilpamj

Showing Answers 1 - 3 of 3 Answers

For native Java equlivalent keyword is extern in c#.

native keyword is used Java and where as in c# extern keyword is used.

Sample usage is below.

[DllImport("User32.dll")]
public static extern int MessageBox(int h, string m, string c, int type);

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions