Finding problem in accessing assemble written in c# from vb.net

S

swarup

Hi,

I've a class in c# which is having 2 methods, both having same name
but with different case. Both the methods do not have any input
parameters.Now, how can i access these methods in vb.net since vb.net
is not case sensitive.

Thanks.
swarup
 
C

Cor Ligthert [MVP]

Swarup,

Than your programs are not CLS compliant if those methods are public, only
CLS compliant programs can be used in all dotNet languages. If they are
private it is of course not any problem.

Cor
 
C

Chris Dunaway

swarup said:
I've a class in c# which is having 2 methods, both having same name
but with different case. Both the methods do not have any input

What do the methods do? Why would you do this in the first place?
parameters.Now, how can i access these methods in vb.net since vb.net
is not case sensitive.

If the two methods are in different namespaces, then you can use the
fully qualified namespace to access each function.
 
B

Bill Butler

Step 1: Smack the programmer in the head. If that happens to be
you....smack yourself twice.
Step 2: Fix the C# class:
Step 3: Now access it from VB

Why would you have 2 methods differing only by case?!?

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top