Posts

Showing posts from September, 2021

Why does compiler throw CS0563 error when I overload == in C# ?-- resolved

 Why does compiler throw CS0563 error when I overload  == in C# ?-- resolved Let's take a look at my code? Before solved: using System; namespace Operator_Overloaded_Comparsion {     class Program     {         public class Base         {             public int num1;             public int num2;             public Base(int n1,int n2)             {                 num1 = n1;                 num2 = n2;             }                      }         static void Main(string[] args)         {             Base b1 = new Base(2,3);             Base b...