Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Last active October 24, 2017 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/07e983e326b43cafa024ef7b26c93a3c to your computer and use it in GitHub Desktop.
Save NMZivkovic/07e983e326b43cafa024ef7b26c93a3c to your computer and use it in GitHub Desktop.
extension ExtendedEntity extends Entity
{
private string _additionalField = "AdditionalField";
public string AdditionalField
{
get
{
return _additionalField;
}
set
{
_additionalField = value;
}
}
public static void PrintSomething() => Console.Write("Someting");
public void PrintAdditionalInfo() => Console.Wirte(_additionalInfo);
}
@eyohansa
Copy link

There's a typo on line 19. Console.Wirte should be Console.Write.

@wildbook
Copy link

Line 5 also contains a typo. AditionalField should be AdditionalField.

@NMZivkovic
Copy link
Author

Fixed it, thanks for pointing it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment