public static string GenerateValue <T>(this T unit, ValueInput input) where T : IUnit { return(UnitCodeGenerator <T> .GetDecorator(unit).GenerateValue(input)); }
public static string GenerateControl <T>(this T unit, ControlInput input, int indent) where T : IUnit { return(UnitCodeGenerator <T> .GetDecorator(unit).GenerateControl(input, indent)); }