nxtlib/src/Protocol.cs
/// <summary>
/// [Native] Close and dispose of a handle.
/// </summary>
/// <param name="handle">The read or write handle number.</param>
[Native] Close and dispose of a handle.
[ Native ] Close and dispose of a handle .
public void Close(byte handle)
        {
            byte[] request = new byte[] {
            0x01,
            (byte) MessageCommand.Close,
            handle
            };
            byte[] reply = CompleteRequest(request);
            byte handleOut = reply[3];
            if (handleOut != handle)
            {
                throw new NXTReplyIncorrect();
            }
            return;
        }
public void Close ( byte handle ) { byte [ ] request = new byte [ ] { 0x01 , ( byte ) MessageCommand . Close , handle } ; byte [ ] reply = CompleteRequest ( request ) ; byte handleOut = reply [ 3 ] ; if ( handleOut != handle ) { throw new NXTReplyIncorrect ( ) ; } return ; }
[Native] Close and dispose of a handle.
[ Native ] Close and dispose of a handle .
handle
byte
The read or write handle number.
The read or write handle number .