implement auto export struct's  properties(set/get) and method