Code: Select all
#region Assembly PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\PresentationFramework.dll
#endregion
using System.Globalization;
namespace System.Windows.Data
{
public interface IValueConverter
{
object Convert(object value, Type targetType, object parameter, CultureInfo culture);
object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture);
}
}
However, in CSHTML5, the signature uses culture\language as type of string instead of CultureInfo.
Code: Select all
#region Assembly CSharpXamlForHtml5, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// C:\Program Files (x86)\MSBuild\CSharpXamlForHtml5\AssembliesToReference\CSharpXamlForHtml5.dll
#endregion
using System;
public interface IValueConverter
{
object Convert(object value, Type targetType, object parameter, string language);
object ConvertBack(object value, Type targetType, object parameter, string language);
}
Is there any plan to update your signatures to match the accepted Microsoft signatures? I use CSHTML5 in a shared project, and this forces me to create many, many duplicate converters just for CSHTML5.