Regextra.Template.GetFailedPropertyChain C# (CSharp) Méthode

GetFailedPropertyChain() private static méthode

private static GetFailedPropertyChain ( string properties, int index ) : string>.Tuple
properties string
index int
Résultat string>.Tuple
        private static Tuple<string, string> GetFailedPropertyChain(string[] properties, int index)
        {
            string parentProperty = index == 0 ? properties[0] : String.Join(".", properties.Take(index));
            string childProperty = index == 0 ? "" : properties[index];
            return Tuple.Create(parentProperty, childProperty);
        }