Using custom TypeConverter outside of PropertyGrid

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cartoper

    Using custom TypeConverter outside of PropertyGrid

    I have written all these wonderful custom TypeConverter for my enums
    to display in a PropertyGrid. I would now like to use the same
    TypeConverter to save out and read in the values to and from a text
    file, in a generic fashion. I would like to have a function like
    this:

    void WriteValue(Stre amWriter sw, string name, Enum value);
  • Marc Gravell

    #2
    Re: Using custom TypeConverter outside of PropertyGrid

    Or just TypeDescriptor. GetConverter(en umType) ;-p

    Comment

    • Marc Gravell

      #3
      Re: Using custom TypeConverter outside of PropertyGrid

      No problem; and for the record I replied on Friday!

      Marc


      Comment

      • Cartoper

        #4
        Re: Using custom TypeConverter outside of PropertyGrid

        On Mar 31, 9:31 am, "Marc Gravell" <marc.grav...@g mail.comwrote:
        for the record I replied on Friday!
        Opps, I guess I ment: where were you while I was at lunch on Firday;)
        hehehehehe

        Comment

        Working...