Hi I have to convert my project from java to C# and i need help with below lines to convert them into c#. Please look at below image and code which i have typed here.
for (String profile : userProfiles)
{
int maxuser = 100;
if (profile.equals("astd"))
maxuser = 300;
for (String suffix : suffixes)
{
for (int i = 0; i <= maxuser; i++)
{
String prefix = profile;
System.out.println("prefix" + prefix);
String num = Integer.toString(i);
if (num.length() < 2)
num = "0" + num;
String postfix = num;
String username = prefix + postfix + suffix;
System.out.println(username);
//TODO add a
Gson gson = new Gson();
User u = new User();
u.setFirstName(username