コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BaZicInterpreterStateChangeEventArgs"/> class.
        /// </summary>
        /// <param name="state">The <see cref="BaZicInterpreterState"/></param>
        public BaZicInterpreterStateChangeEventArgs(BaZicInterpreterState state)
        {
            if (state == BaZicInterpreterState.StoppedWithError)
            {
                throw new ArgumentOutOfRangeException(nameof(state), L.BaZic.Runtime.BaZicInterpreterStateChangeEventArgs.StoppedWithErrorForbidden);
            }

            State = state;
        }
コード例 #2
0
ファイル: StateException.cs プロジェクト: veler/BaZic
 public StateException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     Sate = (BaZicInterpreterState)info.GetValue(nameof(Sate), typeof(BaZicInterpreterState));
 }
コード例 #3
0
ファイル: StateException.cs プロジェクト: veler/BaZic
 /// <summary>
 /// Initializes a new instance of <see cref="StateException"/>
 /// </summary>
 /// <param name="state">The state</param>
 internal StateException(BaZicInterpreterState state)
     : base(L.BaZic.Runtime.Debugger.Exception.StateException)
 {
     Sate = state;
 }