Пример #1
0
 /// <summary>
 /// Uses <see cref="Format(MappingDataRange)">Format</see> to format all the ranges of the supplied
 /// MappingPropertyBag.
 /// </summary>
 /// <param name="bag">The property bag to convert.</param>
 /// <returns>An array of strings, one per <see cref="MappingDataRange">MappingDataRange</see>.</returns>
 public string[] FormatAll(MappingPropertyBag bag)
 {
     MappingDataRange[] dataRanges = bag.GetResultRanges();
     string[]           results    = new string[dataRanges.Length];
     for (int i = 0; i < results.Length; ++i)
     {
         results[i] = Format(dataRanges[i]);
     }
     return(results);
 }
Пример #2
0
        /// <summary>
        /// Uses <see cref="Format(MappingDataRange)">Format</see> to format all the ranges of the supplied
        /// <see cref="MappingPropertyBag">MappingPropertyBag</see>.
        /// </summary>
        /// <param name="bag">The property bag to convert.</param>
        /// <returns>An array of string arrays, one per <see cref="MappingDataRange">MappingDataRange</see>.</returns>
        public string[][] FormatAll(MappingPropertyBag bag)
        {
            if (bag == null)
            {
                throw new ArgumentNullException("bag");
            }

            MappingDataRange[] dataRanges = bag.GetResultRanges();
            string[][]         results    = new string[dataRanges.Length][];
            for (int i = 0; i < results.Length; ++i)
            {
                results[i] = Format(dataRanges[i]);
            }
            return(results);
        }