Nustache.Core.VariableReference.VariableReference C# (CSharp) Method

VariableReference() public method

public VariableReference ( string path ) : System
path string
return System
        public VariableReference(string path)
        {
            if (path == null)
            {
                throw new ArgumentNullException("path");
            }

            _path = path;

            var match = _notEscapedRegex.Match(path);
            _escaped = !match.Success;

            if (match.Success)
            {
                _path = match.Groups[1].Value;
            }

            if (_path.StartsWith("&"))
            {
                _escaped = false;
                _path = _path.Substring(1).Trim();
            }
        }