সিনট্যাক্স
public override string ToString ();
উদাহরণ
using System;
public class Demo {
public static void Main(){
bool b = true;
string res = b.ToString();
Console.WriteLine("Return Value = " + res);
}
}
আউটপুট
Return Value = True
আরেকটি উদাহরণ
using System;
public class Demo {
public static void Main(){
bool b = false;
string res = b.ToString();
Console.WriteLine("Return Value = " + res);
}
}
আউটপুট
Return Value = False