예제 #1
0
        // load the extension class for System.XmlLinq
        internal static SystemXmlLinqExtensionMethods ExtensionsForSystemXmlLinq(bool force = false)
        {
            if (_systemXmlLinqExtensionMethods == null &&
                (force || IsLoaded(UncommonAssembly.System_Xml_Linq)))
            {
                _systemXmlLinqExtensionMethods = (SystemXmlLinqExtensionMethods)LoadExtensionFor("SystemXmlLinq");
            }

            return(_systemXmlLinqExtensionMethods);
        }
예제 #2
0
        // Token: 0x06006545 RID: 25925 RVA: 0x001C6A74 File Offset: 0x001C4C74
        internal static string GetXElementTagName(object item)
        {
            SystemXmlLinqExtensionMethods systemXmlLinqExtensionMethods = AssemblyHelper.ExtensionsForSystemXmlLinq(false);

            if (systemXmlLinqExtensionMethods == null)
            {
                return(null);
            }
            return(systemXmlLinqExtensionMethods.GetXElementTagName(item));
        }
예제 #3
0
        // Token: 0x06006544 RID: 25924 RVA: 0x001C6A54 File Offset: 0x001C4C54
        internal static bool IsXElement(object item)
        {
            SystemXmlLinqExtensionMethods systemXmlLinqExtensionMethods = AssemblyHelper.ExtensionsForSystemXmlLinq(false);

            return(systemXmlLinqExtensionMethods != null && systemXmlLinqExtensionMethods.IsXElement(item));
        }
예제 #4
0
        // Token: 0x06006547 RID: 25927 RVA: 0x001C6AB4 File Offset: 0x001C4CB4
        internal static bool IsXLinqNonIdempotentProperty(PropertyDescriptor pd)
        {
            SystemXmlLinqExtensionMethods systemXmlLinqExtensionMethods = AssemblyHelper.ExtensionsForSystemXmlLinq(false);

            return(systemXmlLinqExtensionMethods != null && systemXmlLinqExtensionMethods.IsXLinqNonIdempotentProperty(pd));
        }
예제 #5
0
        // XLinq exposes several properties on XElement that create new objects
        // every time the getter is called.
        internal static bool IsXLinqNonIdempotentProperty(PropertyDescriptor pd)
        {
            SystemXmlLinqExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXmlLinq();

            return((extensions != null) ? extensions.IsXLinqNonIdempotentProperty(pd) : false);
        }
예제 #6
0
        // return a string of the form "{http://my.namespace}TagName"
        internal static string GetXElementTagName(object item)
        {
            SystemXmlLinqExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXmlLinq();

            return((extensions != null) ? extensions.GetXElementTagName(item) : null);
        }
예제 #7
0
        // return true if the item is an XElement
        internal static bool IsXElement(object item)
        {
            SystemXmlLinqExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXmlLinq();

            return((extensions != null) ? extensions.IsXElement(item) : false);
        }
        // load the extension class for System.XmlLinq
        internal static SystemXmlLinqExtensionMethods ExtensionsForSystemXmlLinq(bool force=false)
        {
            if (_systemXmlLinqExtensionMethods == null &&
                (force || IsLoaded(UncommonAssembly.System_Xml_Linq)))
            {
                _systemXmlLinqExtensionMethods = (SystemXmlLinqExtensionMethods)LoadExtensionFor("SystemXmlLinq");
            }

            return _systemXmlLinqExtensionMethods;
        }