is there some way how I can this do in C#? I can not use this(int,int) in C# code. Can you write me some similar code which will be in C# and will do the same things? Thank you! :)
public class JavaApplication2
{
public static class SomeClass
{
private int x;
private int y;
public SomeClass () { this(90,90); }
public SomeClass(int x, int y) { this.x = x; this.y = y; }
public void ShowMeValues ()
{
System.out.print(this.x);
System.out.print(this.y);
}
}
public static void main(String[] args)
{
SomeClass myclass = new SomeClass ();
myclass.ShowMeValues();
}
}