Skip to content

Instantly share code, notes, and snippets.

@stimms
Created February 9, 2017 18:53
Show Gist options
  • Save stimms/8ed8cb51065fd0dafa1671638ca18498 to your computer and use it in GitHub Desktop.
Save stimms/8ed8cb51065fd0dafa1671638ca18498 to your computer and use it in GitHub Desktop.
//what is generated
ILog log;
IAttributeCodeInfoProvider attributeCodeInfoProvider;
public Handler(IAttributeCodeInfoProvider attributeCodeInfoProvider, ILog log)
{
this.attributeCodeInfoProvider = attributeCodeInfoProvider;
this.log = log;
}
//what I'd like
private readonly ILog _log;
private readonly IAttributeCodeInfoProvider _attributeCodeInfoProvider;
public Handler(IAttributeCodeInfoProvider attributeCodeInfoProvider, ILog log)
{
_attributeCodeInfoProvider = attributeCodeInfoProvider;
_log = log;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment