Dev2.Runtime.ServiceModel.Resources.GetResourceParent C# (CSharp) Метод

GetResourceParent() приватный Метод

private GetResourceParent ( string resourcePath ) : string
resourcePath string
Результат string
        string GetResourceParent(string resourcePath)
        {
            return resourcePath.Contains("\\") ? resourcePath.Substring(0, resourcePath.LastIndexOf("\\", StringComparison.Ordinal)) : resourcePath;
        }