Extern Method

An extern modifier can be used to indicate that the implementation happens outside of the C# code.
This modifier is usually used with the DllImport attribute

[DllImport("User32.dll")] 
public static extern GetDirectoryName(out string sDirName);

You can also use this modifier as an external assembly alias if you have two or more versions of the same assembly in the same application.







© 2020 Better Solutions Limited. All Rights Reserved. © 2020 Better Solutions Limited TopPrevNext