IEnumerable <string> IGenEmitter.Emit(GenContext context, GenSpec spec) => Emit(context, (T)spec);
public override IEnumerable <string> Emit(GenContext context, PocoPropertySpec spec) { yield return($"{spec.PropertyType} {spec.TargetName} " + "{get;set;}"); }
/// <summary> /// Generates the code as defined by a spec /// </summary> /// <param name="spec">The defining spec</param> /// <returns></returns> public abstract IEnumerable <string> Emit(GenContext context, T spec);
static void Test1() { var context = new GenContext("", "", "Meta.Core"); var spec = new NewTypeSpec("ZipCode", "string"); var emit = Emission.Emit(context, spec); }