Skip to content

Instantly share code, notes, and snippets.

@xanthalas
Created May 30, 2023 20:22
Show Gist options
  • Select an option

  • Save xanthalas/47868b07574c6b02178acc0636be39ac to your computer and use it in GitHub Desktop.

Select an option

Save xanthalas/47868b07574c6b02178acc0636be39ac to your computer and use it in GitHub Desktop.
Blog-CreatorClasses-1
public class Person
{
public Person(
string firstName,
string lastName,
int age,
IEnumerable<string> hobbies,
IEnumerable<string> favouriteThings)
{
this.FirstName = firstName;
this.LastName = lastName;
this.Age = age;
this.Hobbies = hobbies;
this.FavouriteThings = favouriteThings;
}
public string FirstName { get; }
public string LastName { get; }
public int Age { get; }
public IEnumerable<string> Hobbies { get; }
public IEnumerable<string> FavouriteThings { get; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment