GetNameWithParameterList() public static method

public static GetNameWithParameterList ( IMethodReference value ) : string
value IMethodReference
return string
示例#1
0
        public static string GetNameWithDeclaringType(IMethodReference value)
        {
            ITypeReference typeReference = value.DeclaringType as ITypeReference;

            if (typeReference != null)
            {
                return(Helper.GetNameWithResolutionScope(typeReference) + "." + Helper.GetNameWithParameterList(value));
            }

            IArrayType arrayType = value.DeclaringType as IArrayType;

            if (arrayType != null)
            {
                return(arrayType.ToString() + "." + Helper.GetNameWithParameterList(value));
            }

            throw new NotSupportedException();
        }