Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of System.Array in VB.NET

2025-04-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the use of System.Array in VB.NET, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

The base class of the VB.NET array is System.Array.

People who have studied programming will have a certain understanding of arrays, after all, any computer development language will have the concept of arrays. An array is an object that stores an array of numbers. The more important concepts in the VB.NET array include

Dimension (also known as rank only) Rank

The length of each dimension GetLength, GetLongLength

Superscript GetLowerBound, GetUpperBound

Total length Length,LongLength

Traversing find,exists,indexof, etc.

Sort sort

Reverse reverse

Dynamic array redim,resize, but resize is a generic method

Replication copy,copyto,ConstrainedCopy of array

System.Array provides a wealth of properties and methods. We can get more useful information by referring to MSDN.

The VB.NET array can theoretically store a set of objects of any type. So, of course, arrays can be stored in arrays, and these arrays can be of different dimensions and lengths. In this way, we can use an array to store irregular array information, as an example:

Dim arrA (1) As Array Dim arrB (2) As String arrB (0) = "Northsnow" arrB (1) = "Snow in Saibei" arrB (2) = "Changchun Rail bus Co., Ltd." Dim arrC (1) As String arrC (0) = "CSDN" arrC (1) = "developer Network of China * *" arrA (0) = arrB arrA (1) = arrC For i = 0 To arrA.GetUpperBound (0) For j = 0 To arrA (I) .GetUpperBound (0) MsgBox (arrA (I) .GetValue (j)) Next Next Thank you for reading this article carefully I hope the article "what is the use of System.Array in VB.NET" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report