public object BuildObject(ObjectBuilders.IObjectBuilderBuildObjectContext <int> context, int address, ObjectBuilders.IBuiltDependencies <int> dependencies) { if (!dependencies.TryGetDependency("data", out var dataDependency)) { throw new InvalidOperationException(); } return(dataDependency.BuiltObject); }
public object BuildObject(ObjectBuilders.IObjectBuilderBuildObjectContext <int> context, int address, ObjectBuilders.IBuiltDependencies <int> dependencies) { if (!dependencies.TryGetDependency("data", out var dependency)) { throw new InvalidOperationException("No dependency called data found"); } var d = (string)dependency.BuiltObject; return("Wrapped " + d); }