Telerik.Web.Mvc.UI.Fluent.EditorSnippetBuilder.ReadFile C# (CSharp) Method

ReadFile() private method

private ReadFile ( string fileName ) : string
fileName string
return string
        private string ReadFile(string fileName)
        {
            if (fileName.IndexOf("://") < 0)
            {
                fileName = fileName.StartsWith("~/", StringComparison.OrdinalIgnoreCase) ? fileName : PathHelper.CombinePath(WebAssetDefaultSettings.StyleSheetFilesPath, fileName);
            }

            if (!fileName.StartsWith("~"))
            {
                fileName = string.Format("~/Content/{0}", fileName);
            }

            if (!pathProvider.FileExists(fileName))
            {
                throw new FileNotFoundException(Resources.TextResource.SpecifiedFileDoesNotExist.FormatWith(fileName));
            }

            return pathProvider.ReadAllText(fileName);
        }