/////////////////////////////////////////////////////////////////////// internal int SetUndefined( Interpreter interpreter, string pattern, bool undefined ) { int result = 0; foreach (KeyValuePair <string, IVariable> pair in this) { IVariable variable = pair.Value; if (variable == null) { continue; } // // NOTE: This method is EXEMPT from the normal requirement // that all the variables operated on must be defined. // // if (EntityOps.IsUndefined(variable)) // continue; string name = variable.Name; if ((pattern == null) || StringOps.Match( interpreter, StringOps.DefaultMatchMode, name, pattern, false)) { if (EntityOps.IsUndefined(variable) == undefined) { continue; } if (EntityOps.SetUndefined(variable, undefined)) { result++; } } } return(result); }