delegate void del(int i);
interface IPerson { String FirstName { get; set; } }
class Employee : IPerson
{
private String str;
public String FirstName
{
get
{
return str;
}
set
{
str = value;
}
}
}
class Employee
{
private String str;
public String IPerson.FirstName
{
get
{
return str;
}
set
{
str = value;
}
}
}
class Employee : implements IPerson
{
private String str;
public String FirstName
{
get
{
return str;
}
set
{
str = value;
}
}
}
class Employee : IPerson
{
private String str;
public String FirstName
{
get
{
return str;
}
set
{
str = value;
}
}
}
class Sample { public void MyFun(int i, Single j) { Console.WriteLine("Welcome to CuriousTab !"); } }
delegate void del(int i);
Sample s = new Sample();
del d = new del(ref s.MyFun);
d(10, 1.1f);
delegate void del(int i, Single j);
del d;
Sample s = new Sample();
d = new del(ref s.MyFun);
d(10, 1.1f);
Sample s = new Sample();
delegate void d = new del(ref MyFun);
d(10, 1.1f);
delegate void del(int i, Single]);
Sample s = new Sample();
del = new delegate(ref MyFun);
del(10, 1.1f);
delegate void del(int i, Single j);
del d;
Sample s = new Sample();
d = new del(ref s.MyFun);
d(10, 1.1f);
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.