private static string GetParameterTypesString(MethodSignatureBase signature)
        {
            string parameterTypesString = string.Join(", ", signature.ParameterTypes)
                                          + (signature.IsSentinel ? ", ..." : string.Empty);

            return(parameterTypesString);
        }
Пример #2
0
        /// <summary>
        /// Creates the return value of a method signature.
        /// </summary>
        /// <param name="methodSig">Method Signature</param>
        /// <returns></returns>
        private IConcreteValue CreateReturnValue(MethodSignatureBase methodSig)
        {
            var returnType = methodSig.ReturnType;

            return(returnType.ElementType != ElementType.Void
                ? ValueFactory.CreateValue(returnType, false)
                : null);
        }
Пример #3
0
 private static string GetParameterTypesString(MethodSignatureBase signature)
 {
     return(string.Format("{0}{1}",
                          string.Join(", ", signature.ParameterTypes),
                          signature.IsSentinel ? ", ..." : string.Empty));
 }