func init // adds using namespace sys.add_use('System.Security.Principal') sys.add_use('System.ComponentModel') // initialize a member if(not isdef('Name')) sys.add_var(this.name, 'WindowsAccountType') blk_init.println(this.codename, ' = ', this.WindowsAccountType(), ';') end // initialize parser sys._se_init('Parse', 'WindowsAccountType', 'WindowsAccountType') end func _se_make(value) return('(WindowsAccountType)Enum.Parse(typeof(WindowsAccountType), ' + d('Value') + ')') end func doMembers() blk.println('foreach (object item in TypeDescriptor.GetConverter(typeof(WindowsAccountType)).GetStandardValues()) {').inc() event('onMembers', 'item') blk.dec().println('}') end func WindowsAccountType() return('WindowsAccountType.' + this.props('WindowsAccountType').value) end