internal static SymbolSpecification FromXElement(XElement symbolSpecificationElement) { var result = new SymbolSpecification(); result.ID = Guid.Parse(symbolSpecificationElement.Attribute(nameof(ID)).Value); result.Name = symbolSpecificationElement.Attribute(nameof(Name)).Value; result.PopulateSymbolKindListFromXElement(symbolSpecificationElement.Element(nameof(ApplicableSymbolKindList))); result.PopulateAccessibilityListFromXElement(symbolSpecificationElement.Element(nameof(ApplicableAccessibilityList))); result.PopulateModifierListFromXElement(symbolSpecificationElement.Element(nameof(RequiredModifierList))); return(result); }
internal static SymbolSpecification FromXElement(XElement symbolSpecificationElement) { var result = new SymbolSpecification(); result.ID = Guid.Parse(symbolSpecificationElement.Attribute(nameof(ID)).Value); result.Name = symbolSpecificationElement.Attribute(nameof(Name)).Value; result.PopulateSymbolKindListFromXElement(symbolSpecificationElement.Element(nameof(ApplicableSymbolKindList))); result.PopulateAccessibilityListFromXElement(symbolSpecificationElement.Element(nameof(ApplicableAccessibilityList))); result.PopulateModifierListFromXElement(symbolSpecificationElement.Element(nameof(RequiredModifierList))); return result; }