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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:15:51+00:00 2026-05-20T08:15:51+00:00

When creating an array, such as int[], does this inherit from anything? I thought

  • 0

When creating an array, such as int[], does this inherit from anything? I thought it might inherit from System.Array, but after looking at the compiled CIL it does’t appear so.

I thought it might inherit from System.Array or somehting similair, considering you can call methods and access properties on an array.

I.e.

int[] arr = {1, 2};
arr.Initialize();
arr.Length;
  • 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-20T08:15:52+00:00Added an answer on May 20, 2026 at 8:15 am

    All arrays derive from System.Array. From an (admittedly ancient) edition of MSDN magazine:

    All array types are implicitly derived from System.Array, which itself is derived from System.Object. This means that all arrays are always reference types which are allocated on the managed heap, and your app’s variable contains a reference to the array and not the array itself.

    From section 19.1.1 of the C# Language Specification (emphasis mine):

    The type System.Array is the abstract base type of all array types. An implicit reference conversion
    (§13.1.4) exists from any array type to System.Array and to any interface type implemented by
    System.Array. An explicit reference conversion (§13.2.3) exists from System.Array and any interface
    type implemented by System.Array to any array type. System.Array is not itself an array-type. Rather,
    it is a class-type from which all array-types are derived
    .

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

Sidebar

Related Questions

What is the prefered method for creating a byte array from an input stream?
I know that in JavaScript, creating a for loop like this: for(int i =
right now I'm creating an array and using: render :json => @comments This would
If you are creating a 1d array in Python, is there any benefit to
I'm creating my own JavaScript Array-like object and I have methods that call closures.
Creating Traversals for Binary Search Tree with Recursion. void inOrder(void (*inOrderPtr)(T&)) { if(this->left !=
I need a Dictionary whose key is an array of integers for example Dictionary<int[],string>
I am creating a huge Array in javascript...It's 4 levels deep and many elements
Creating a patch is very easy in SubVersion, With Tortoise, you right-click and select
Creating hashes of hashes in Ruby allows for convenient two (or more) dimensional lookups.

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.