Boo.Lang.Runtime.RuntimeServices.op_Multiply C# (CSharp) Метод

op_Multiply() публичный статический Метод

public static op_Multiply ( Array lhs, int count ) : Array
lhs System.Array
count int
Результат System.Array
        public static Array op_Multiply(Array lhs, int count)
        {
            if (count < 0)
            {
                throw new ArgumentOutOfRangeException("count");
            }

            Type type = lhs.GetType();
            if (1 != type.GetArrayRank())
            {
                throw new ArgumentException("lhs");
            }

            int length = lhs.Length;
            Array result = Array.CreateInstance(type.GetElementType(), length * count);
            int destinationIndex = 0;
            for (int i = 0; i < count; ++i)
            {
                Array.Copy(lhs, 0, result, destinationIndex, length);
                destinationIndex += length;
            }
            return result;
        }

Same methods

RuntimeServices::op_Multiply ( int count, Array rhs ) : Array
RuntimeServices::op_Multiply ( object lhs, TypeCode lhsTypeCode, object rhs, TypeCode rhsTypeCode ) : object
RuntimeServices::op_Multiply ( int count, string rhs ) : string
RuntimeServices::op_Multiply ( string lhs, int count ) : string
RuntimeServices