Xceed.Wpf.Toolkit.CheckComboBox.GetItemDisplayValue C# (CSharp) Method

GetItemDisplayValue() protected method

protected GetItemDisplayValue ( object item ) : object
item object
return object
    protected object GetItemDisplayValue( object item )
    {
      if( !String.IsNullOrEmpty( DisplayMemberPath ) )
      {
        var property = item.GetType().GetProperty( DisplayMemberPath );
        if( property != null )
          return property.GetValue( item, null );
      }

      return item;
    }