예제 #1
0
        private static ImmutableArray <Accessibility> GetAccessibilityListFromXElement(XElement accessibilityListElement)
        {
            var applicableAccessibilityList = ArrayBuilder <Accessibility> .GetInstance();

            foreach (var accessibilityElement in accessibilityListElement.Elements("AccessibilityKind"))
            {
                applicableAccessibilityList.Add(AccessibilityExtensions.FromXElement(accessibilityElement));
            }
            return(applicableAccessibilityList.ToImmutableAndFree());
        }
예제 #2
0
        private void PopulateAccessibilityListFromXElement(XElement accessibilityListElement)
        {
            var applicableAccessibilityList = new List <Accessibility>();

            foreach (var accessibilityElement in accessibilityListElement.Elements("AccessibilityKind"))
            {
                applicableAccessibilityList.Add(AccessibilityExtensions.FromXElement(accessibilityElement));
            }
            ApplicableAccessibilityList = applicableAccessibilityList;
        }