AIT.Tools.VisualStudioTextTransform.DefaultVariableResolver.SimpleResolveVariable C# (CSharp) Method

SimpleResolveVariable() public method

The simple resolution strategy of this instance.
public SimpleResolveVariable ( string variable ) : string
variable string
return string
        public string SimpleResolveVariable(string variable)
        {
            switch (variable)
            {
                case "ProjectDir":
                {
                    return _projectDir;
                }
                case "SolutionDir":
                {
                    return _solutionDir;
                }
                case "TargetDir":
                {
                    return _targetDir;
                }
            }
            throw new ArgumentOutOfRangeException(
                string.Format(CultureInfo.CurrentUICulture, "Unknown variable {0}", variable));
        }