public static DangerSettings FromYencon(YSection section) { bool allow = section.GetNodeAsBoolean(KeyOfAllowDangerSettings) ?? false; bool show_del = section.GetNodeAsBoolean(KeyOfShowDeleteMenu) ?? false; return(new DangerSettings(allow, show_del)); }