Home > Net >  C # operators can't application object and the object operand
C # operators can't application object and the object operand

Time:09-18

 

Why the front plus "+" is not an error and it is an error is how to return a responsibility

CodePudding user response:

SQLDR []. ToString () + SQLDR [] the toString ()

CodePudding user response:

SQLDR [r]. "XXX" ToString ();

CodePudding user response:

This foundation is really a long story

CodePudding user response:

reference 1st floor is nu month god reply:
SQLDR [] the toString () + SQLDR [] the toString ()

Thank you, I want to ask next, with a "why" is not an error

CodePudding user response:

refer to the second floor OrdinaryCoder response:
SQLDR [r]. "XXX" ToString ();

Thank you, why the prefix "" is not an error?

CodePudding user response:

reference ∽ twisted dough-strips a reply: 3/f
this basis is really a long story

Novice in self-study, laughed, just don't understand the difference of two picture in where

CodePudding user response:

Object cannot be directly role together with string, you need to first object into a string, as said above. The ToString (), will be joining together again after the object into a string
  •  Tags:  
  • C#
  • Related