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); }
public void ExpandVariableInPlace(string varName, string varExpansion) { ExpandableVars.ExpandInCopy(Value, varName, varExpansion, out object value); Value = (string)value; }