/// <summary> /// Formats the low-level data contained in this <see cref="MappingPropertyBag">MappingPropertyBag</see> using an implementation of /// the <see cref="IMappingFormatter{T}">IMappingFormatter</see> interface. /// </summary> /// <typeparam name="T">The type with which <see cref="IMappingFormatter{T}">IMappingFormatter</see> is parameterized.</typeparam> /// <param name="formatter">The formatter to be used in the formatting.</param> /// <returns></returns> public T[] FormatData <T>(IMappingFormatter <T> formatter) { if (formatter == null) { throw new ArgumentNullException("formatter"); } return(formatter.FormatAll(this)); }
/// <summary> /// Formats the low-level data contained in this <see cref="MappingPropertyBag">MappingPropertyBag</see> using an implementation of the /// <see cref="IMappingFormatter{T}">IMappingFormatter</see> interface. /// </summary> /// <typeparam name="T">The type with which <see cref="IMappingFormatter{T}">IMappingFormatter</see> is parameterized.</typeparam> /// <param name="formatter">The formatter to be used in the formatting.</param> /// <returns></returns> public T[] FormatData <T>(IMappingFormatter <T> formatter) { return(formatter.FormatAll(this)); }