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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:53:04+00:00 2026-06-02T02:53:04+00:00

I need to create a multidimensional guard List three values​​, X, Y and Z,

  • 0

I need to create a multidimensional guard List three values​​, X, Y and Z, and I need a List that is because once the value is queried, the array must be removed.

The query would look something like this: List [0] [0] = X, List [0] [a] = Y and List [0] [2] = X, so that I can remove only the index 0 and he already remove all the other three.

  • 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-02T02:53:05+00:00Added an answer on June 2, 2026 at 2:53 am

    If you need to create a multidimensional list, you can always create a list of lists like so:

    var multiDimensionalList = new List<List<string>>{
        new List<string>{"A","B","C"},
        new List<string>{"D","E","F"},
        new List<string>{"G","H","I"},
    };
    Console.WriteLine(multiDimensionalList[2][1]); // Prints H
    
    multiDimensionalList[2].RemoveAt(1);
    Console.WriteLine(multiDimensionalList[2][1]); // Prints I
    
    multiDimensionalList[2][1] = "Q";
    Console.WriteLine(multiDimensionalList[2][1]); // Prints Q
    

    Be aware though that attempting to replace a value that doesn’t exist by way of assignment will throw an exception:

    multiDimensionalList[2][5] = "R"; // Throws an ArgumentOutOfRangeException
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a multi-dimensional array that I need to loop through and create <td></td>
i need create an email list sending to many emails. what is best solution
I'd like to create a dynamic Multidimensional ArrayList that reads from a text file
I need to create a function that has a parameter which is a multi-dimensional
I need to create a multi-dimensional array which will be passed to a class.
I have a JSON file that I would like to create an multi-dimensional array
I'm trying to create a function to parse out all values in a multidimensional
I'm using a foreach loop to create an array from database values like so:
I'm trying to create a permutation of a multidimensional array in classic asp (vbscript)
I need to create a multi-dimensional (nested) hashtable/dictionary so that I can use syntax

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.