// C# program to demonstrate the
// Array.GetValue(Int32[]) and
// Array.GetValue(Int64[]) method
using System;
class GFG {
public static void Main() {
// declare a character
// array of size 1x2x2x3
// it has 2 3D array
// which have 2 row and
// 3 column each
string[, , , ] arr = new string[1, 2, 2, 3];
/*Array look like
|------------------------------------|
| ---------------------------------- |
| |C++| |Java| |C#| |
| |Perl| |python| |PHP| |
| ---------------------------------- |
| ---------------------------------- |
| |Ruby| |F#| |Julia| |
| |SQL| |Kotlin| |GO| |
| ---------------------------------- |
|____________________________________|
*/
arr.SetValue("C++", 0, 0, 0, 0);
arr.SetValue("Java", 0, 0, 0, 1);
arr.SetValue("C#", 0, 0, 0, 2);
arr.SetValue("Perl", 0, 0, 1, 0);
arr.SetValue("Python", 0, 0, 1, 1);
arr.SetValue("PHP", 0, 0, 1, 2);
arr.SetValue("Ruby", 0, 1, 0, 1);
arr.SetValue("F#", 0, 1, 0, 1);
arr.SetValue("Julia", 0, 1, 0, 2);
arr.SetValue("SQL", 0, 1, 1, 0);
arr.SetValue("kotlin", 0, 1, 1, 1);
arr.SetValue("GO", 0, 1, 1, 2);
// initialize a integer array
// contains the index of the element
// index of 'C#'
int[] indx = new int[4]{0, 1, 1, 2};
// "indx" array is passing
// to GetValue(Int32[]) method
Console.WriteLine("Element at index [0, 1, 1, 2] is : {0}",
arr.GetValue(indx));
}
}