test/T4Toolbox.Tests/FakeTextTemplatingService.cs
/// <summary>
/// Loads the requested file name. The file name can be specified only as rooted file path, or path relative to the current directory.
/// </summary>
Loads the requested file name. The file name can be specified only as rooted file path, or path relative to the current directory.
Loads the requested file name . The file name can be specified only as rooted file path or path relative to the current directory .
bool ITextTemplatingEngineHost.LoadIncludeText(string requestFileName, out string content, out string location)
        {
            if (File.Exists(requestFileName))
            {
                location = Path.GetFullPath(requestFileName);
                content = File.ReadAllText(location);
                return true;
            }
            location = null;
            content = null;
            return false;
        }
bool ITextTemplatingEngineHost . LoadIncludeText ( string requestFileName , out string content , out string location ) { if ( File . Exists ( requestFileName ) ) { location = Path . GetFullPath ( requestFileName ) ; content = File . ReadAllText ( location ) ; return true ; } location = null ; content = null ; return false ; }
Loads the requested file name.
Loads the requested file name .
requestFileName
string
string
out