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 7752029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:41:50+00:00 2026-06-01T11:41:50+00:00

I saw this in a random doxygen example for C#, and all attempts at

  • 0

I saw this in a random doxygen example for C#, and all attempts at Googling for it have failed since I have no idea what it’s called or what it does.

int test(int a, string b);       
int i = test(1, "b");

Any one have any insight?

EDIT

So here’s a fun try. I put it into a new program and it doesn’t compile, except if I put a static in front of it. Now it compiles.

namespace ConsoleApplication1
{
    class Program
    {
        static int test(int a, string b);
        static void Main(string[] args)
        {
            int i = test(1, "b");
        }
    }
}
  • 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-01T11:41:51+00:00Added an answer on June 1, 2026 at 11:41 am

    The first line looks like an interface declaration. It is saying that a class has a method that accepts an integer and a string and returns an integer.

    Then it calls the method. However, this isn’t valid right now. I’m not sure if the rest was removed for brevity since you didn’t link to the source. Valid code would look like this:

    public interface ISomeInterface
    {
        int test(int a, string b);       
    }
    
    ISomeInterface instance = GetInstance();
    
    int i = instance.test(1, "b");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I saw this example in the SciPy documentation: x, y = np.random.multivariate_normal(mean, cov, 5000).T
I saw this the other day (scroll all the way down to see some
Saw this example on the jQuery examples page for Ajax: var xmlDocument = [create
Saw this signature today: public interface ISomeInterface<in T> What impact does the in parameter
Saw this in a book: Given: class SortOf { String name; int bal; String
i saw this example : Validate that end date is greater than start date
Saw this piece of code in a Ruby on Rails book. This first one
I saw this in an answer to another question , in reference to shortcomings
I saw this same question for VIM and it has been something that I
I saw this quote on the question: What is a good functional language on

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.