Skip to content

Instantly share code, notes, and snippets.

@sudipto80
Created February 4, 2016 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sudipto80/e21b7d4aaeabcbfe00e6 to your computer and use it in GitHub Desktop.
Save sudipto80/e21b7d4aaeabcbfe00e6 to your computer and use it in GitHub Desktop.
string code_1 = @"public class Employee
{
private int _Age;
private string _Name;
public int Age
{
get { return _Age; }
}
public string Name
{
get { return _Name; }
set { _Name = value; }
}
[Obsolete]
public int AgeOld
{
get {return _Age};
}
public void GetPayCheck()
{
}
public void Work()
{
}
}";
string code_2 = @"public class Employee
{
private string _Name;
private double _Age;
public double Age
{
get { return _Age; }
set { _Age = value; }
}
[Obsolete]
public int AgeOld
{
get {return _Age};
}
public string Name
{
get { return _Name; }
set { _Name = value; }
}
public void GetPayCheck()
{
}
public void Work()
{
}
}
";
string code1 = @" class A
{
public void fun(int a)
{
a++;
}
public void Am(int x)
{
}
}
class B
{
public static int Age{get;set;}
public string ClassifyMethod
{
get
{
if(flag)
return a;
else
return q;
}
}
[Obsolete(""Beause we have another one"")]
public string Name {get;set;}
public string NameAgain {get;}
public int m1()
{
return 2;
}
public int m2(float z)
{
return 23;
}
}
";
string code2 = @"class B
{
int xem = 0;
public string ClassifyMethod
{
get
{
if(flag)
return a;
else
return q;
}
}
[Obsolete(""Because we have another one"")]
public string Name{get;set;}
public string NameAgain {get;}
public double Age{get;}
public int m2(int z)
{
return 23;
}
//public int m1()//old
// {
// return 22;
// }
public int m1(float s)
{
return 2;
}
}
class A
{
public void fun(int a)
{
a++;
}
public int Am(int x)
{
return 0;
}
}
";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment