/// This method formats the element by printing the prefix, formatting subelements separated by the separator, and then adding the suffix after the last element.
///
/// The implementation is straightforward. isFirst flag is used to determine if this is the first subelement or not, for the purpose of placing a separator.
///
/// public void Format(TextWriter writer, MdxElement element) {
///     writer.Write(prefix);
///     bool isFirst = true;
///     foreach (MdxElement subelement in element.Subelements) {
///         if (!isFirst) {
///             writer.Write(separator);
///         } else {
///             isFirst = false;
///         }
///         MdxFortmatter.Format(writer, subelement);
///     }
///     writer.Write(suffix);
/// }
/// <param name="element">
/// The element to format.
/// </param>
/// <param name="writer">
/// The writer into which to format the objects.
/// </param>
/// <param name="Return">
/// void
/// </param>
        public void Format(TextWrter writer, MdxElement element)
        {
        }
Beispiel #2
0
/// This method formats the element by printing the prefix, formatting subelements separated by the separator, and then adding the suffix after the last element.
/// 
/// The implementation is straightforward. isFirst flag is used to determine if this is the first subelement or not, for the purpose of placing a separator.
/// 
/// public void Format(TextWriter writer, MdxElement element) {
///     writer.Write(prefix);
///     bool isFirst = true;
///     foreach (MdxElement subelement in element.Subelements) {
///         if (!isFirst) {
///             writer.Write(separator);
///         } else {
///             isFirst = false;
///         }
///         MdxFortmatter.Format(writer, subelement);
///     }
///     writer.Write(suffix);
/// }
/// <param name="element">
/// The element to format.
/// </param>
/// <param name="writer">
/// The writer into which to format the objects.
/// </param>
/// <param name="Return">
/// void
/// </param>
public void Format(TextWrter writer, MdxElement element) {
}