Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What would T[, ,] mean in C#

Tags:

c#

generics

I have the generic-enabled class that is decleared as:

public class Image<TColor, TDepth>
      : CvArray<TDepth>, IImage, IEquatable<Image<TColor, TDepth>>
      where TColor : struct, IColor
      where TDepth : new()
   {
      private TDepth[, ,] _array;

What would TDepth[, ,] mean in this case? That it is just a two-dimensional array?

like image 319
Maxim V. Pavlov Avatar asked Nov 29 '22 17:11

Maxim V. Pavlov


1 Answers

It is a Multidimensional Array. In this case, it has 3 dimensions.

like image 93
myermian Avatar answered Dec 05 '22 15:12

myermian