< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 36
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%110%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/Signatures/ArrayShape.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System.Collections.Immutable;
 5
 6namespace System.Reflection.Metadata
 7{
 8    /// <summary>
 9    /// Represents the shape of an array type.
 10    /// </summary>
 11    public readonly struct ArrayShape
 12    {
 13        /// <summary>
 14        /// Gets the number of dimensions in the array.
 15        /// </summary>
 016        public int Rank { get; }
 17
 18        /// <summary>
 19        /// Gets the sizes of each dimension. Length may be smaller than rank, in which case the trailing dimensions hav
 20        /// </summary>
 021        public ImmutableArray<int> Sizes { get; }
 22
 23        /// <summary>
 24        /// Gets the lower-bounds of each dimension. Length may be smaller than rank, in which case the trailing dimensi
 25        /// </summary>
 026        public ImmutableArray<int> LowerBounds { get; }
 27
 28        public ArrayShape(int rank, ImmutableArray<int> sizes, ImmutableArray<int> lowerBounds)
 029        {
 030            Rank = rank;
 031            Sizes = sizes;
 032            LowerBounds = lowerBounds;
 033        }
 34    }
 35}
 36