­

Get-Set property in C#

using System;using System.Collections.Generic;using System.Text;namespace Get_Set_Test{ class Program { static void Main(string[] args) { //CREATE OBJECT GetSet_Test obj = new GetSet_Test(); //SET VALUE OF THAT CLASS obj.Val = 5; //GET VALUE OF THAT CLASS Console.WriteLine(obj.Val); Console.ReadLine(); } public void TypeTest(Control obj) { } } class GetSet_Test { int val;...

Continue Reading

User Event in C#

Very simple user event in C#. Codes are:using System;using System.Collections.Generic;using System.Text;namespace ...