Exemple #1
0
        public bool ExpandVairableInCopy(string varName, string varExpansion, out IExpandable outCopy)
        {
            bool    didCopy = false;
            Pattern newCopy = Copy();

            if (ExpandableVars.ExpandInCopy(Value, varName, varExpansion, out object value))
            {
                didCopy       = true;
                newCopy.Value = (string)value;
            }
            outCopy = newCopy;
            return(didCopy);
        }
Exemple #2
0
 public void ExpandVariableInPlace(string varName, string varExpansion)
 {
     ExpandableVars.ExpandInCopy(Value, varName, varExpansion, out object value);
     Value = (string)value;
 }