Avvenimenti
Mar 17, 11 PM - Mar 21, 11 PM
Ingħaqad mas-serje meetup biex tibni soluzzjonijiet skalabbli tal-IA bbażati fuq każijiet ta 'użu fid-dinja reali ma' żviluppaturi u esperti sħabi.
Irreġistra issaDan il-brawżer m'għadux appoġġjat.
Aġġorna għal Microsoft Edge biex tieħu vantaġġ mill-aħħar karatteristiċi, aġġornamenti tas-sigurtà, u appoġġ tekniku.
Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'type'
The compiler is doing a reference comparison. If you want to compare the value of strings, cast the left side of the expression to type
.
The following sample generates CS0252:
// CS0252.cs
// compile with: /W:2
using System;
class MyClass
{
public static void Main()
{
string s = "11";
object o = s + s;
bool b = o == s; // CS0252
// try the following line instead
// bool b = (string)o == s;
}
}
Feedback ta’ .NET
.NET huwa proġett b’sors miftuħ. Agħżel link biex tipprovdi l-feedback:
Avvenimenti
Mar 17, 11 PM - Mar 21, 11 PM
Ingħaqad mas-serje meetup biex tibni soluzzjonijiet skalabbli tal-IA bbażati fuq każijiet ta 'użu fid-dinja reali ma' żviluppaturi u esperti sħabi.
Irreġistra issa