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

  • Home
  • SEARCH
  • 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 7546501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:12:54+00:00 2026-05-30T09:12:54+00:00

My Google-Jitsu is failing me. Question is in the title… What is the difference

  • 0

My Google-Jitsu is failing me. Question is in the title… What is the difference between T[,] and T[*,*]?
I am looking for a 2, 2-1/2 part answer:

  1. Layman’s (or super architect’s) plain english explaination with example code.

  2. Link to the formal documentation of this distinction.

    Bonus: Point to subsection and page number in the C# 4 spec that defines this. (It is not in sect 12 "Arrays")

I got this notion here.

  • 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-30T09:12:57+00:00Added an answer on May 30, 2026 at 9:12 am

    T[] means a zero-based array of T (array[0] is its first element)

    T[*] means a non-zero-based array of T (array[0] is not its first element and can even be out of bounds)

    The link from your question explains that there is no array of type T[*,*], because all multi-dimensional arrays of T[,] are treated as arrays with unknown lower-bound.

    Code snippet below shows how you can create an instance of T[*]. Note that you can not cast it to T[], because they are different types. a[0] here will throw an OutOfRangeException, the index of the first element in this array is 1 (ah, good old Pascal days…).

    Array a = Array.CreateInstance(typeof(String), new Int32[] { 1 }, new Int32[] { 1 });
    Console.WriteLine(a.GetType());    // System.String[*]  
    

    More example code

    Bonus. The C# language spec says, “The indices of the elements of an array range from 0 to Length – 1”. Obviously, the language does not provide built-in support for non-zero-based arrays, it’s just a custom data structure that you can create; although specific in a sense that the compiler happens to have a special symbol for its type and VS uses standard array visualizer for them when you’re debugging.

    See also:

    How to create a 1-Dimensional Array in C# with index starting at 1

    C#: Nonzero-based arrays are not CLS-compliant

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

Sidebar

Related Questions

Google's Dremel is described here . What's the difference between Dremel and Mapreduce?
Google is failing me here. I have a designer who needs desperately to have
Google webmaster tools reports Duplicate title tags on pages where I have pagination. A
Google has yielded a few results to this question, but they all seem to
Google is failing me on this one. Let's say I have some ECMA script
Google/MyBrain are failing me. Without using a framework (which I'll never get past my
Google calendar throws at me rfc3339, but all my dates are in those milliseconds
Google Chrome and Firefox deduces the response from the server without problems why doesn't
Google has taken up the implementation of WebRTC in Chrome very seriously as indicated
Google Webmaster Tools is giving me loads of crawl Errors of a certain type

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.