What are native methods?



What are native methods?..

Answer / Abhishek Pandey

In C#, native methods refer to methods that are written in a language other than C#, typically C or C++. They can be used to call functions written in these languages and gain access to functionalities not available in C#. The method signature must include the 'unsafe' and 'dllimport' keywords.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

what is partial assembly reference

1 Answers  


What are anonymous methods ? why these methods are used and in what condition these methods are useful ?

1 Answers  


Why array is faster than arraylist in c#?

1 Answers  


What is a cs file?

1 Answers  


Are all methods virtual in c#?

1 Answers  


What is instantiating a class?

1 Answers  


How do I link two windows forms in c#?

1 Answers  


what is work of continue statement in C#?

3 Answers  


What is the difference between “constant” and “readonly” variables in c#?

1 Answers  


Which is the best way for keeping the data in XML or SQL server..and why?

8 Answers   Infosys, Satyam,


What is a deadlock lock?

1 Answers  


What is sorting in c#?

1 Answers  


Categories