I have below try sample code using objectclass.
- class general
- {
- int id = 1;
- string name = "Employee";
-
- }
- class general2
- {
- }
- class Program
- {
- static void Main(string[] args)
- {
- general g= new general();
- general2 h = new general2();
-
- g.Equals(h);
- Console.WriteLine(g.ToString());
- Console.ReadLine();
- }
- }