コード例 #1
0
        /// <summary>
        /// Initiates a Try/Catch/Finally operation.
        /// </summary>
        public FluentTryBuilder <TThis> Try()
        {
            _CheckModifiable();

            var result = new FluentTryBuilder <TThis>(_this, _method);

            _statements.Add(result);
            return(result);
        }
コード例 #2
0
 internal FluentCatchBuilder(FluentTryBuilder <TParentBuilder> tryBuilder, Expression catchVariable) :
     base(tryBuilder._parent, tryBuilder._method)
 {
     _tryBuilder    = tryBuilder;
     _catchVariable = catchVariable;
 }