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

  • Thread starter Thread starter swarup
  • Start date Start date
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
 
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
 
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.
 
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
 
Back
Top