private static IEnumerable <string> GetLanguageDataColumns(this ResourceTableEntry entry, IEnumerable <CultureKey> languages, IResourceScope scope)
        {
            Contract.Requires(entry != null);
            Contract.Requires(languages != null);

            return(languages.SelectMany(l => entry.GetLanguageDataColumns(l, scope)));
        }
        /// <summary>
        /// Gets one text tables line as an array of columns.
        /// </summary>
        /// <param name="entry">The entry for which to generate the line.</param>
        /// <param name="languages">The resource languages.</param>
        /// <param name="scope">The scope.</param>
        /// <returns>
        /// The columns of this line.
        /// </returns>
        private static IEnumerable <string> GetDataRow(this ResourceTableEntry entry, IEnumerable <CultureKey> languages, IResourceScope scope)
        {
            Contract.Requires(entry != null);
            Contract.Requires(languages != null);

            return((new[] { entry.Key }).Concat(entry.GetLanguageDataColumns(languages, scope)));
        }
        private static IEnumerable <string> GetLanguageDataColumns([NotNull] this ResourceTableEntry entry, [NotNull][ItemNotNull] IEnumerable <CultureKey> languages, [CanBeNull] IResourceScope scope)
        {
            Contract.Requires(entry != null);
            Contract.Requires(languages != null);
            Contract.Ensures(Contract.Result <IEnumerable <string> >() != null);

            return(languages.SelectMany(l => entry.GetLanguageDataColumns(l, scope)));
        }
Ejemplo n.º 4
0
 private static IEnumerable <string> GetLanguageDataColumns([NotNull] this ResourceTableEntry entry, [NotNull][ItemNotNull] IEnumerable <CultureKey> languages, [CanBeNull] IResourceScope scope)
 {
     return(languages.SelectMany(l => entry.GetLanguageDataColumns(l, scope)));
 }
Ejemplo n.º 5
0
 private static IEnumerable <string> GetDataRow([NotNull] this ResourceTableEntry entry, [NotNull][ItemNotNull] IEnumerable <CultureKey> languages, [CanBeNull] IResourceScope scope)
 {
     return(new[] { entry.Key }.Concat(entry.GetLanguageDataColumns(languages, scope)));
 }