コード例 #1
0
 public TwoWayCopier SetCounters(BytesCountersRW left, BytesCountersRW right)
 {
     CopierFromLeft.CounterR  = left.R;
     CopierFromRight.CounterW = left.W;
     CopierFromRight.CounterR = right.R;
     CopierFromLeft.CounterW  = right.W;
     return(this);
 }
コード例 #2
0
 public BytesCountersRW(BytesCountersRW nextRW)
 {
     R = new BytesCounter(nextRW.R);
     W = new BytesCounter(nextRW.W);
 }
コード例 #3
0
ファイル: InConnection.cs プロジェクト: hex11/Naive
        protected InConnection(IAdapter creator) : base(creator)
        {
            var adap = creator.GetAdapter();

            BytesCountersRW = new BytesCountersRW(adap.BytesCountersRW);
        }