func init // adds using namespace sys.add_use('System.Security.AccessControl') sys.add_use('System.ComponentModel') // initialize a member if(not isdef('Name')) sys.add_var(this.name, 'AccessControlSections') blk_init.println(this.codename, ' = ', this.AccessControlSections(), ';') end // initialize parser sys._se_init('Parse', 'AccessControlSections', 'AccessControlSections') end func _se_make(value) return('(AccessControlSections)Enum.Parse(typeof(AccessControlSections), ' + d('Value') + ')') end func doMembers() blk.println('foreach (object item in TypeDescriptor.GetConverter(typeof(AccessControlSections)).GetStandardValues()) {').inc() event('onMembers', 'item') blk.dec().println('}') end func AccessControlSections() v = this.props('AccessControlSections').value flags = ((v _and_ 1) ? '|AccessControlSections.None' : '') + ((v _and_ 2) ? '|AccessControlSections.Audit' : '') + ((v _and_ 4) ? '|AccessControlSections.Access' : '') + ((v _and_ 8) ? '|AccessControlSections.Owner' : '') + ((v _and_ 16) ? '|AccessControlSections.Group' : '') + ((v _and_ 32) ? '|AccessControlSections.All' : '') return('(0' + flags + ')') end