17 lines
513 B
C#
17 lines
513 B
C#
![]() |
using System;
|
|||
|
using System.Globalization;
|
|||
|
using System.Windows.Data;
|
|||
|
|
|||
|
namespace Yunda.SOMS.DataMonitoringServer.Viewport.Domain.Converters
|
|||
|
{
|
|||
|
internal class ToStringConverter : IValueConverter
|
|||
|
{
|
|||
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|||
|
{
|
|||
|
var data = value?.ToString();
|
|||
|
return data;
|
|||
|
}
|
|||
|
|
|||
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => null;
|
|||
|
}
|
|||
|
}
|