GetNameWithParameterList() public static méthode

public static GetNameWithParameterList ( IMethodReference value ) : string
value IMethodReference
Résultat string
Exemple #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();
        }