// find a node with the given string as its InnerText
        internal static object FindXmlNodeWithInnerText(IEnumerable items, object innerText, out int index)
        {
            index = -1;
            SystemXmlExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXml();

            return((extensions != null) ? extensions.FindXmlNodeWithInnerText(items, innerText, out index) : DependencyProperty.UnsetValue);
        }
Пример #2
0
        // load the extension class for System.Xml
        internal static SystemXmlExtensionMethods ExtensionsForSystemXml(bool force = false)
        {
            if (_systemXmlExtensionMethods == null &&
                (force || IsLoaded(UncommonAssembly.System_Xml)))
            {
                _systemXmlExtensionMethods = (SystemXmlExtensionMethods)LoadExtensionFor("SystemXml");
            }

            return(_systemXmlExtensionMethods);
        }
Пример #3
0
        // Token: 0x06006543 RID: 25923 RVA: 0x001C6A34 File Offset: 0x001C4C34
        internal static object GetInnerText(object item)
        {
            SystemXmlExtensionMethods systemXmlExtensionMethods = AssemblyHelper.ExtensionsForSystemXml(false);

            if (systemXmlExtensionMethods == null)
            {
                return(null);
            }
            return(systemXmlExtensionMethods.GetInnerText(item));
        }
Пример #4
0
        // Token: 0x06006541 RID: 25921 RVA: 0x001C69E4 File Offset: 0x001C4BE4
        internal static string GetXmlTagName(object item, DependencyObject target)
        {
            SystemXmlExtensionMethods systemXmlExtensionMethods = AssemblyHelper.ExtensionsForSystemXml(false);

            if (systemXmlExtensionMethods == null)
            {
                return(null);
            }
            return(systemXmlExtensionMethods.GetXmlTagName(item, target));
        }
Пример #5
0
        // Token: 0x0600653F RID: 25919 RVA: 0x001C69A0 File Offset: 0x001C4BA0
        internal static IComparer PrepareXmlComparer(IEnumerable collection, SortDescriptionCollection sort, CultureInfo culture)
        {
            SystemXmlExtensionMethods systemXmlExtensionMethods = AssemblyHelper.ExtensionsForSystemXml(false);

            if (systemXmlExtensionMethods != null)
            {
                return(systemXmlExtensionMethods.PrepareXmlComparer(collection, sort, culture));
            }
            return(null);
        }
Пример #6
0
        // Token: 0x06006542 RID: 25922 RVA: 0x001C6A08 File Offset: 0x001C4C08
        internal static object FindXmlNodeWithInnerText(IEnumerable items, object innerText, out int index)
        {
            index = -1;
            SystemXmlExtensionMethods systemXmlExtensionMethods = AssemblyHelper.ExtensionsForSystemXml(false);

            if (systemXmlExtensionMethods == null)
            {
                return(DependencyProperty.UnsetValue);
            }
            return(systemXmlExtensionMethods.FindXmlNodeWithInnerText(items, innerText, out index));
        }
Пример #7
0
        // Token: 0x0600653E RID: 25918 RVA: 0x001C6978 File Offset: 0x001C4B78
        internal static bool TryGetValueFromXmlNode(object item, string name, out object value)
        {
            SystemXmlExtensionMethods systemXmlExtensionMethods = AssemblyHelper.ExtensionsForSystemXml(false);

            if (systemXmlExtensionMethods != null)
            {
                return(systemXmlExtensionMethods.TryGetValueFromXmlNode(item, name, out value));
            }
            value = null;
            return(false);
        }
Пример #8
0
        // Token: 0x06006540 RID: 25920 RVA: 0x001C69C4 File Offset: 0x001C4BC4
        internal static bool IsEmptyXmlDataCollection(object parent)
        {
            SystemXmlExtensionMethods systemXmlExtensionMethods = AssemblyHelper.ExtensionsForSystemXml(false);

            return(systemXmlExtensionMethods != null && systemXmlExtensionMethods.IsEmptyXmlDataCollection(parent));
        }
Пример #9
0
        // Token: 0x0600653D RID: 25917 RVA: 0x001C6958 File Offset: 0x001C4B58
        internal static bool IsXmlNamespaceManager(object item)
        {
            SystemXmlExtensionMethods systemXmlExtensionMethods = AssemblyHelper.ExtensionsForSystemXml(false);

            return(systemXmlExtensionMethods != null && systemXmlExtensionMethods.IsXmlNamespaceManager(item));
        }
        // get the InnerText of the given node
        internal static object GetInnerText(object item)
        {
            SystemXmlExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXml();

            return((extensions != null) ? extensions.GetInnerText(item) : null);
        }
        // when item is an XmlNode, get its tag name (using the target DO as context
        // for namespace lookups)
        internal static string GetXmlTagName(object item, DependencyObject target)
        {
            SystemXmlExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXml();

            return((extensions != null) ? extensions.GetXmlTagName(item, target) : null);
        }
        // return true if parent is an empty XmlDataCollection.
        internal static bool IsEmptyXmlDataCollection(object parent)
        {
            SystemXmlExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXml();

            return((extensions != null) ? extensions.IsEmptyXmlDataCollection(parent) : false);
        }
        // return true if the item is an XmlNamespaceManager
        internal static bool IsXmlNamespaceManager(object item)
        {
            SystemXmlExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXml();

            return((extensions != null) ? extensions.IsXmlNamespaceManager(item) : false);
        }
Пример #14
0
        // load the extension class for System.Xml
        internal static SystemXmlExtensionMethods ExtensionsForSystemXml(bool force=false)
        {
            if (_systemXmlExtensionMethods == null &&
                (force || IsLoaded(UncommonAssembly.System_Xml)))
            {
                _systemXmlExtensionMethods = (SystemXmlExtensionMethods)LoadExtensionFor("SystemXml");
            }

            return _systemXmlExtensionMethods;
        }