WikiFunctions.Tools.RemoveHashFromPageTitle C# (CSharp) Метод

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

Removes the # and text after from a page title. Some redirects redirect to sections, the API doesnt like this
public static RemoveHashFromPageTitle ( string title ) : string
title string Page Title
Результат string
        public static string RemoveHashFromPageTitle(string title)
        {
            return !title.Contains("#") ? title : (title.Substring(0, title.IndexOf('#')));
        }
Tools