using System; using System.Globalization; using System.Windows; using System.Windows.Data; using Gestor.Model.Common; namespace Gestor.Common.Converters; public class TipoTelefoneVisibilityConverter : IMultiValueConverter { public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Invalid comparison between Unknown and I4 if (values[0] == null) { return (object)(Visibility)2; } if (values[0] is TipoTelefone val && (int)val != 3) { return (object)(Visibility)2; } object obj = values[1]; if (obj is bool && (bool)obj) { return (object)(Visibility)2; } return (object)(Visibility)0; } public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) { return null; } }