public
Created

  • Download Gist
Container.cs
C#
1 2 3 4 5 6 7
public void AddAsset(Action<IAddAssetExpression> configure)
{
var assetBuilder = new AssetBuilder(this);
configure(expression);
_assets.add(assetBuilder.Build());
}

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.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.