System.Xml.Xsl.Runtime.XmlQueryRuntime.DebugGetGlobalValue C# (CSharp) Méthode

DebugGetGlobalValue() public méthode

Get the value of a global value having the specified name. Always return the global value as a list of XPathItem. Return null if there is no global value having the specified name.
public DebugGetGlobalValue ( string name ) : IList
name string
Résultat IList
        public IList DebugGetGlobalValue(string name) {
            for (int idx = 0; idx < this.globalNames.Length; idx++) {
                if (this.globalNames[idx] == name) {
                    Debug.Assert(IsGlobalComputed(idx), "Cannot get the value of a global value until it has been computed.");
                    Debug.Assert(this.globalValues[idx] is IList<XPathItem>, "Only debugger should call this method, and all global values should have type item* in debugging scenarios.");
                    return (IList) this.globalValues[idx];
                }
            }
            return null;
        }