AddonHelper.Addon.GetBetween C# (CSharp) Метод

GetBetween() публичный Метод

Get a string between 2 other strings from the source string
public GetBetween ( string Source, string Str1, string Str2 ) : string
Source string The source string
Str1 string The first string, for example: "<link>"
Str2 string The second string, for example: "</link>"
Результат string
        public string GetBetween(string Source, string Str1, string Str2)
        {
            return Source.Split(new string[] { Str1, Str2 }, StringSplitOptions.None)[Source.Contains(Str1) ? 1 : 0];
        }