Skip to content

Instantly share code, notes, and snippets.

@BrightShadow
Last active September 26, 2018 19:02
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 BrightShadow/28dabbee5d513d2c9f4002501d57c2f3 to your computer and use it in GitHub Desktop.
Save BrightShadow/28dabbee5d513d2c9f4002501d57c2f3 to your computer and use it in GitHub Desktop.
Example WPF command with memory leak possibility.
public RelayCommand MyGreatCommand
{
get
{
return this.myGreatCommand ?? (
this.myGreatCommand = new RelayCommand(
() =>
{
// some code here
})
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment