This is my true error:
Profile.cs(16,5): error CS1519: Invalid token '{' in class, struct, or interface member declaration [/home/ccuser/workspace/csharp-dating-pro
file/DatingProfile.csproj]
Profile.cs(16,16): error CS1519: Invalid token '=' in class, struct, or interface member declaration [/home/ccuser/workspace/csharp-dating-pr
ofile/DatingProfile.csproj]
Profile.cs(16,21): error CS1519: Invalid token ';' in class, struct, or interface member declaration [/home/ccuser/workspace/csharp-dating-pr
ofile/DatingProfile.csproj]
Profile.cs(17,5): error CS1022: Type or namespace definition, or end-of-file expected [/home/ccuser/workspace/csharp-dating-profile/DatingPro
file.csproj]
Profile.cs(17,7): error CS1031: Type expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(17,11): error CS1003: Syntax error, '[' expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(17,11): error CS1001: Identifier expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(17,17): error CS1001: Identifier expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(17,23): error CS1003: Syntax error, ',' expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(17,25): error CS1003: Syntax error, ']' expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(17,25): error CS1514: { expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(18,5): error CS1022: Type or namespace definition, or end-of-file expected [/home/ccuser/workspace/csharp-dating-profile/DatingPro
file.csproj]
Profile.cs(18,7): error CS1031: Type expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(18,11): error CS1003: Syntax error, '[' expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(18,11): error CS1001: Identifier expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(18,20): error CS1001: Identifier expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(18,29): error CS1003: Syntax error, ',' expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(18,31): error CS1003: Syntax error, ']' expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(18,31): error CS1514: { expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(19,5): error CS1022: Type or namespace definition, or end-of-file expected [/home/ccuser/workspace/csharp-dating-profile/DatingPro
file.csproj]
Profile.cs(19,7): error CS1031: Type expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(19,11): error CS1003: Syntax error, '[' expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(19,11): error CS1001: Identifier expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(19,21): error CS1001: Identifier expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(19,31): error CS1003: Syntax error, ',' expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(19,33): error CS1003: Syntax error, ']' expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(19,33): error CS1514: { expected [/home/ccuser/workspace/csharp-dating-profile/DatingProfile.csproj]
Profile.cs(21,1): error CS1022: Type or namespace definition, or end-of-file expected [/home/ccuser/workspace/csharp-dating-profile/DatingPro
file.csproj]
The build failed. Please fix the build errors and run again.
And here is my code again:
using System;
namespace DatingProfile
{
class Profile
{
private string name;
private int age;
private string city;
private string country;
private string pronouns;
private string[] hobbies;
public Profile(string name, int age, string city, string country, string pronouns = "they/them")
{ this.name = name; }
{ this.age = age; }
{ this.city = city; }
{ this.country = country; }
{ this.pronouns = pronouns; }
}
}