using System;
namespace ajayvishu
{
class Program
{
public class DATA<T>
{
//member of class
private T data;
//property of class
public T value
{
get
{
return this.data;
}
set
{
this.data = value;
}
}
}
//main method declare
static void Main(string[] args)
{
DATA<string> name = new DATA<string>();
name.value = "ajayvishu";
Console.WriteLine(name.value);
Console.ReadLine();
}
}
}
namespace ajayvishu
{
class Program
{
public class DATA<T>
{
//member of class
private T data;
//property of class
public T value
{
get
{
return this.data;
}
set
{
this.data = value;
}
}
}
//main method declare
static void Main(string[] args)
{
DATA<string> name = new DATA<string>();
name.value = "ajayvishu";
Console.WriteLine(name.value);
Console.ReadLine();
}
}
}
0 Comments
if you have any doubts , please let me know