static BaseURL LoadBaseURL(XElement element) { var result = new BaseURL(); result.ServiceLocation = (string)element.Attribute("serviceLocation"); result.ByteRange = (string)element.Attribute("byteRange"); result.AnyAttr.AddRange(element.Attributes()); result.Value = element.Value; return result; }
static BaseURL LoadBaseURL(XElement element) { var result = new BaseURL(); result.ServiceLocation = (string)element.Attribute("serviceLocation"); result.ByteRange = (string)element.Attribute("byteRange"); result.AnyAttr.AddRange(element.Attributes()); result.Value = element.Value; return(result); }