ToString() public méthode

public ToString ( ) : string
Résultat string
Exemple #1
0
 public CardRun(ChatCard card)
     : base(new Run(card.ToString()))
 {
     this.FontWeight = FontWeights.Bold;
     this.Foreground = Brushes.DarkSlateGray;
     this.Cursor     = Cursors.Hand;
     _card           = card;
     _card.UpdateCardText((model, gamecard) =>
     {
         (this.Inlines.FirstInline as Run).Text = model.PropertyName();
     });
 }
 public CardRun(ChatCard card)
     : base(new Run(card.ToString()))
 {
     this.FontWeight = FontWeights.Bold;
     this.Foreground = Brushes.DarkSlateGray;
     this.Cursor = Cursors.Hand;
     _card = card;
     _card.UpdateCardText((model, gamecard) =>
         {
             (this.Inlines.FirstInline as Run).Text = model.PropertyName();
         });
 }