commit completefunc and c# define