17
1
using System;
2
using System.Text;
3
4
public class Program
5
{
6
public static void Main()
7
{
8
string str = "London";
9
StringBuilder sb = new StringBuilder("London");
10
object obj = sb.ToString();
11
12
Console.WriteLine(str == obj);
13
Console.WriteLine(str == sb.ToString());
14
Console.WriteLine(str.Equals(obj));
15
Console.WriteLine(obj.Equals(str));
16
}
17
}
Cached Result
10
I executed this
10
I executed this
10
I executed this
10
I executed this
10