T4Scaffolding.Core.Templating.DynamicTextTemplatingEngineHost.LoadIncludeText C# (CSharp) Method

LoadIncludeText() public method

The included text is returned in the content parameter. If the host searches the registry for the location of include files, or if the host searches multiple locations by default, the host can return the final path of the include file in the location parameter.
public LoadIncludeText ( string requestFileName, string &content, string &location ) : bool
requestFileName string
content string
location string
return bool
        public bool LoadIncludeText(string requestFileName, out string content, out string location) {
            content = String.Empty;
            location = String.Empty;

            // If the argument is the fully qualified path of an existing file, then we are done.
            if (File.Exists(requestFileName)) {
                content = File.ReadAllText(requestFileName);
                return true;
            }
            
            return false;
        }