Esempio n. 1
0
        // Set overrides this to include "value" parameter.
        protected virtual ArrayMethodParameterInfo[] MakeParameters()
        {
            var parameters = new ArrayMethodParameterInfo[arrayType.Rank];

            for (ushort i = 0; i < parameters.Length; i++)
            {
                parameters[i] = ArrayMethodParameterInfo.GetIndexParameter(i);
            }

            return(parameters);
        }
Esempio n. 2
0
        // Set overrides this to include "value" parameter.
        protected virtual ImmutableArray <ArrayMethodParameterInfo> MakeParameters()
        {
            int rank       = (int)arrayType.Rank;
            var parameters = ArrayBuilder <ArrayMethodParameterInfo> .GetInstance(rank);

            for (int i = 0; i < rank; i++)
            {
                parameters.Add(ArrayMethodParameterInfo.GetIndexParameter((ushort)i));
            }

            return(parameters.ToImmutableAndFree());
        }
Esempio n. 3
0
            protected override ImmutableArray <ArrayMethodParameterInfo> MakeParameters()
            {
                int rank       = (int)arrayType.Rank;
                var parameters = ArrayBuilder <ArrayMethodParameterInfo> .GetInstance(rank + 1);

                for (int i = 0; i < rank; i++)
                {
                    parameters.Add(ArrayMethodParameterInfo.GetIndexParameter((ushort)i));
                }

                parameters.Add(new ArraySetValueParameterInfo((ushort)rank, arrayType));
                return(parameters.ToImmutableAndFree());
            }
Esempio n. 4
0
            protected override ArrayMethodParameterInfo[] MakeParameters()
            {
                var indexNum   = (ushort)arrayType.Rank;
                var parameters = new ArrayMethodParameterInfo[indexNum + 1];

                for (ushort i = 0; i < indexNum; i++)
                {
                    parameters[i] = ArrayMethodParameterInfo.GetIndexParameter(i);
                }

                parameters[indexNum] = new ArraySetValueParameterInfo(indexNum, arrayType);

                return(parameters);
            }