Beispiel #1
0
        public static PythonBreakpointConditionKind ToPython(this enum_BP_COND_STYLE style)
        {
            switch (style)
            {
            case enum_BP_COND_STYLE.BP_COND_NONE:
                return(PythonBreakpointConditionKind.Always);

            case enum_BP_COND_STYLE.BP_COND_WHEN_CHANGED:
                return(PythonBreakpointConditionKind.WhenChanged);

            case enum_BP_COND_STYLE.BP_COND_WHEN_TRUE:
                return(PythonBreakpointConditionKind.WhenTrue);

            default:
                throw new ArgumentException("Unrecognized enum_BP_COND_STYLE value");
            }
        }
Beispiel #2
0
        public static PythonBreakpointConditionKind ToPython(this enum_BP_COND_STYLE style)
        {
            switch (style)
            {
            case enum_BP_COND_STYLE.BP_COND_NONE:
                return(PythonBreakpointConditionKind.Always);

            case enum_BP_COND_STYLE.BP_COND_WHEN_CHANGED:
                return(PythonBreakpointConditionKind.WhenChanged);

            case enum_BP_COND_STYLE.BP_COND_WHEN_TRUE:
                return(PythonBreakpointConditionKind.WhenTrue);

            default:
                throw new ArgumentException(Strings.UnrecognizedEnumValue.FormatUI(typeof(enum_BP_COND_STYLE)), nameof(style));
            }
        }