private static IEnumerable <Tuple <string, string> > DynamicReferenceToTuplePairs(DynamicReference reference, string schema) { return(reference.GetAllObjectNames() .SkipWhile(s => s.Equals(schema, StringComparison.OrdinalIgnoreCase)) .SkipLast() .ToTuplePairs()); }
private static Func<XElement, XElement> BuildElementResolver(DynamicReference reference) { var elementNames = reference.GetAllObjectNames(); if (elementNames.Length == 2) { return xml => xml; } return BuildNestedElementResolver(elementNames); }
private static Func <XElement, XElement> BuildElementResolver(DynamicReference reference) { var elementNames = reference.GetAllObjectNames(); if (elementNames.Length == 2) { return(xml => xml); } return(BuildNestedElementResolver(elementNames)); }
private static IEnumerable<Tuple<string,string>> DynamicReferenceToTuplePairs(DynamicReference reference, string schema) { return reference.GetAllObjectNames() .SkipWhile(s => s.Equals(schema, StringComparison.OrdinalIgnoreCase)) .SkipLast() .ToTuplePairs(); }