Anonymous Type Initialized with Array of Integers

Published on June 21, 2015 by abundantcode

Filed under LINQ (General)

Last modified June 21, 2015

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 0 (0 votes)

This article have been viewed 1958 times

using System;
namespace AbundantCodeConsoleApp
    class Program
        static void Main(string[] args)
            var numbers = new int[] { 1, 1, 2, 3, 4, 8, 33, 2 };
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Comment


You might be Interested in these Posts

How to use array Rank in C# ?

In C# , the Rank property of the array is is used to get the rank of the array. In simple terms , ra...

How to get the Number of Elements in an MultiDimensional Array in C# ?

In one of the previous articles , we demonstrated the usage of the Length property of the array in C...

How to get the Number of Elements in an Array in C# ?

You can use the Length property of the array to return the number of elements in it. Note that once ...