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

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

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

            string result = null;
            if (null != lhs)
            {
                StringBuilder builder = new StringBuilder(lhs.Length * count);
                for (int i = 0; i < count; ++i)
                {
                    builder.Append(lhs);
                }
                result = builder.ToString();
            }
            return result;
        }

Same methods

RuntimeServices::op_Multiply ( Array lhs, int count ) : Array
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