Skip to main content
I don't know how to define the ValueConversion attribute in a Cobol class implementing IValueConverter. Can anybody translate the following C# definition. [ValueConversion(typeof(DateTime), typeof(String))] public class DateConverter : IValueConverter Thanks. Werner Lanter
I don't know how to define the ValueConversion attribute in a Cobol class implementing IValueConverter. Can anybody translate the following C# definition. [ValueConversion(typeof(DateTime), typeof(String))] public class DateConverter : IValueConverter Thanks. Werner Lanter

Hi Lanter, you should be able to use something like:

     $set ilusing"System" ilusing"System.Windows.Data"

      class-id DateConverter implements type IValueConverter

               attribute ValueConversion(type of DateTime, type of string).

         ...

      end class.

The ilusing directives will not be required if you set the namespaces in Visual Studio.