Exemple #1
0
        // Token: 0x06006546 RID: 25926 RVA: 0x001C6A94 File Offset: 0x001C4C94
        internal static bool IsXLinqCollectionProperty(PropertyDescriptor pd)
        {
            SystemXmlLinqExtensionMethods systemXmlLinqExtensionMethods = AssemblyHelper.ExtensionsForSystemXmlLinq(false);

            return(systemXmlLinqExtensionMethods != null && systemXmlLinqExtensionMethods.IsXLinqCollectionProperty(pd));
        }
        // XLinq exposes two synthetic properties - Elements and Descendants -
        // on XElement that return IEnumerable<XElement>.  We handle these specially
        // to work around problems involving identity and change notifications
        internal static bool IsXLinqCollectionProperty(PropertyDescriptor pd)
        {
            SystemXmlLinqExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXmlLinq();

            return((extensions != null) ? extensions.IsXLinqCollectionProperty(pd) : false);
        }