Formatter

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Patrick De Ridder

    #1

    Formatter

    Which library should I include for the formatter in

    formatter.Seria lize(output, record);

    Many thanks.

    --
    Patrick De Ridder
    ngmail@freeler. nl
  • David Nelson

    #2
    Re: Formatter

    using System.Runtime. Serialization;

    using System.Runtime. Serialization.F ormatters.Binar y;

    dont think you need to reference any .dll's other then the defaults.

    but i could be wrong! :)

    regards

    Dave

    "Patrick De Ridder" <ngmail@freeler .nl> wrote in message
    news:mlqkiv88v2 dnvq7g7g56apk8k 1eskiali4@4ax.c om...[color=blue]
    > Which library should I include for the formatter in
    >
    > formatter.Seria lize(output, record);
    >
    > Many thanks.
    >
    > --
    > Patrick De Ridder
    > ngmail@freeler. nl[/color]


    Comment

    • David Nelson

      #3
      Re: Formatter

      using System.Runtime. Serialization;

      using System.Runtime. Serialization.F ormatters.Binar y;

      dont think you need to reference any .dll's other then the defaults.

      but i could be wrong! :)

      regards

      Dave

      "Patrick De Ridder" <ngmail@freeler .nl> wrote in message
      news:mlqkiv88v2 dnvq7g7g56apk8k 1eskiali4@4ax.c om...[color=blue]
      > Which library should I include for the formatter in
      >
      > formatter.Seria lize(output, record);
      >
      > Many thanks.
      >
      > --
      > Patrick De Ridder
      > ngmail@freeler. nl[/color]


      Comment

      • Jay B. Harlow [MVP - Outlook]

        #4
        Re: Formatter

        Patrick,
        What type of object is formatter defined to be? ;-)

        For the Binary formatter look for the
        System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er

        For the XML formatter look for the
        System.Runtime. Serialization.F ormatters.Soap. SoapFormatter

        Both of which implement the
        System.Runtime. Remoting.Messag ing.IRemotingFo rmatter &
        System.Runtime. Serialization.I Formatter interfaces.

        There is also System.Runtime. Serialization.F ormatter base class, which I
        believe is used by the BinaryFormatter & SoapFormatter, but I'm not sure
        how. The help for Formatter says "Provides base functionality for the common
        language runtime serialization formatters", But BinaryFormatter &
        SoapFormatter do not appear to inherit from Formatter... But I digress...
        ;-)

        Hope this helps
        Jay

        "Patrick De Ridder" <ngmail@freeler .nl> wrote in message
        news:mlqkiv88v2 dnvq7g7g56apk8k 1eskiali4@4ax.c om...[color=blue]
        > Which library should I include for the formatter in
        >
        > formatter.Seria lize(output, record);
        >
        > Many thanks.
        >
        > --
        > Patrick De Ridder
        > ngmail@freeler. nl[/color]


        Comment

        • Jay B. Harlow [MVP - Outlook]

          #5
          Re: Formatter

          Patrick,
          What type of object is formatter defined to be? ;-)

          For the Binary formatter look for the
          System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er

          For the XML formatter look for the
          System.Runtime. Serialization.F ormatters.Soap. SoapFormatter

          Both of which implement the
          System.Runtime. Remoting.Messag ing.IRemotingFo rmatter &
          System.Runtime. Serialization.I Formatter interfaces.

          There is also System.Runtime. Serialization.F ormatter base class, which I
          believe is used by the BinaryFormatter & SoapFormatter, but I'm not sure
          how. The help for Formatter says "Provides base functionality for the common
          language runtime serialization formatters", But BinaryFormatter &
          SoapFormatter do not appear to inherit from Formatter... But I digress...
          ;-)

          Hope this helps
          Jay

          "Patrick De Ridder" <ngmail@freeler .nl> wrote in message
          news:mlqkiv88v2 dnvq7g7g56apk8k 1eskiali4@4ax.c om...[color=blue]
          > Which library should I include for the formatter in
          >
          > formatter.Seria lize(output, record);
          >
          > Many thanks.
          >
          > --
          > Patrick De Ridder
          > ngmail@freeler. nl[/color]


          Comment

          Working...