Skip to content

Instantly share code, notes, and snippets.

@AlphaGit
Last active March 20, 2016 23:45
Show Gist options
  • Save AlphaGit/303e5763c6d2f6f03dce to your computer and use it in GitHub Desktop.
Save AlphaGit/303e5763c6d2f6f03dce to your computer and use it in GitHub Desktop.
Coupled Producer/Consumer classes
public class Consumer {
public void DoConsumption() {
var producer = new Producer();
var value = producer.DoProduction();
// do something with value
}
}
public class Producer {
public object DoProduction() {
return someObject;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment