Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Is there an equivalent code in C# for the below code(in Java) ?

public Dimension getDimensions()
{
return new Dimension(1000,1000);
}
Posted

1 solution

You can use in C#
"System.Drawing.Point" that Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.

public System.Drawing.Point getDimensions()
       {
           return new System.Drawing.Point(1000, 1000);
       }

Point Structure[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900