Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8419683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:40:50+00:00 2026-06-10T02:40:50+00:00

I have a C# .NET assembly that implements a function that returns an int

  • 0

I have a C# .NET assembly that implements a function that returns an int and an overload that returns an Int32.

public int GetAudioInputLevel()
public Int32 GetAudioInputlevel()

If I use the assembly from a C# .NET application and call that function, it works fine.

If I call my assembly’s function from a vb.NET application, I get the following error :

Error [myfunctionname] is ambiguous because multiple kinds of members
with this name exist in class ‘[myassemblysclass] …

Can someone suggest a workaround, to use that function in vb.net without having to change the signature of that function in my c# .net assembly ?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:40:52+00:00Added an answer on June 10, 2026 at 2:40 am

    VB.NET is not case-sensitive, so these are the same methods, as far as the language is concerned. You’ll need to either change the name of one of them or add a parameter, which would change the method signature enough so that it’s different. However, don’t add a parameter just to add one.

    It is confusing, though, because int and Int32 are the same thing even though they don’t look it. A long is also an alias for Int64, float for Single, the list for C# can be found here.

    It’s also worth noting that even if you had a method returning something other than an int, say, a long, two methods signatures can’t differ only by return value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET assembly DLL that is created on-the-fly from pre-compiled code in
I have a c# .NET assembly that gets called from a C++ COM client.
I have a ASP.NET MVC application which is build up as an assembly that
So I have this asp.net web application that I renamed. I changed the assembly
I have a class that implements IHttpModule in a separate assembly from a website.
I have a ASP.net application that is referencing a external assembly that I need
I have an assembly (.NET class library) that contains an object that implements EAP
I have a .NET assembly that I have executed regasm and gacutil . I
I have a .NET assembly that has tens of classes and methods which are
I have a .net assembly that contains data access code (a bunch of Typed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.