2
Answers

about DLL files

sujit kalagara

sujit kalagara

11y
951
1
hello friends

        I have one DLL file in VB.Net project. I want to use that DLL file in C#.Net project.
        How can i use that file. please explain me.




Warm & Regards
  
 sujit.kalagara
Answers (2)
0
Jignesh Trivedi

Jignesh Trivedi

NA 66.4k 14.2m 11y

yes, you can use Vb.net dll in c#.net by making your vb.net dll CLS compliant.
you can mark your class CLS compliant attribute when you want to use your dll in other .net languages.

<Assembly: CLSCompliant(True)>
Public Class Test
Public Sub TestMethod()
      //do work
End Sub

please refer
http://msdn.microsoft.com/en-us/library/12a7a7h3.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

hope this will help you.

0
Sandeep Singh Shekhawat

Sandeep Singh Shekhawat

NA 23.9k 12m 11y
Sujit,

Here is a article link, go through this article. It would be helpful for you.

http://www.c-sharpcorner.com/UploadFile/84c85b/cross-language-interoperability-with-C-Sharp-net/