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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:13:17+00:00 2026-05-15T22:13:17+00:00

Given a function which accepts a parameter with the following interface: interface ITest {

  • 0

Given a function which accepts a parameter with the following interface:

interface ITest
{
    String this[Int32 dataId, Int32 rowId] { get; set; }
}

How can I determine the number of elements in each dimension of the indexer?

For example if a function receives an array one could use the .GetUpperBound method:

Int32 GetSizeOfDimension(Array test, Int32 dimension)
{
    return test.GetUpperBound(dimension);
}

I’m trying to do the following:

    Int32 GetSizeOfDimension(ITest test, Int32 dimension)
    { 
        // return UBound of test's given dimension
    }
  • 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-05-15T22:13:17+00:00Added an answer on May 15, 2026 at 10:13 pm

    You can’t, in the general case. Imagine an indexer which “worked” in every single case except one – which was randomly determined at the start of the program. How would you find that case, other than by brute force?

    If you need this information, your interface will have to expose it directly.

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

Sidebar

Ask A Question

Stats

  • Questions 509k
  • Answers 509k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer When you write if (originalArray[j] == itemToRemove), you are checking… May 16, 2026 at 4:43 pm
  • Editorial Team
    Editorial Team added an answer Why are you using GetAttributes()? The file could have ReadOnly… May 16, 2026 at 4:43 pm
  • Editorial Team
    Editorial Team added an answer The best way is to upgrade to .NET 4.0 or… May 16, 2026 at 4:43 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a following code which works fine MsgBox(AddSomething(Of String)(Hello, World)) Public Function AddSomething(Of
I have an oracle function which is given below. when I run this in
Suppose I have a function which looks like this: template <class In, class In2>
Given the following Java which is loaded into the database using loadjava: package grassie.example;
I have a function where I have a container which holds strings (eg vector<string>
I was trying to make a tail-recursive version of this very simple SML function:
I am writing a utility which accepts either a filename, or reads from stdin.
Given the two code examples which is preferred? In the first the return variable
Given a type (Candidate) which has muiltiple fields one may score (here one concrete
I have a class which I use to record a value in a given

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.