Cindeck.LabeledNameConverter.Convert C# (CSharp) Method

Convert() public method

public Convert ( object values, Type targetType, object parameter, CultureInfo culture ) : object
values object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
return object
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            return values.All(x => x is string)?string.IsNullOrEmpty((string)values[0])?values[1]:string.Format("[{0}]{1}", values):string.Empty;
        }
LabeledNameConverter