Skip to content

Instantly share code, notes, and snippets.

@jmarnold
Created September 22, 2010 19:46
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 jmarnold/592388 to your computer and use it in GitHub Desktop.
Save jmarnold/592388 to your computer and use it in GitHub Desktop.
public void AddAsset(Action<IAddAssetExpression> configure)
{
var assetBuilder = new AssetBuilder(this);
configure(expression);
_assets.add(assetBuilder.Build());
}
@jmarnold
Copy link
Author

Where IAddAssetExpression could expose a way of describing a way of looking up the asset family. Granted, the situations I've encountered require a lookup each time so the interface was a lot more intuitive.

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