Click here to Skip to main content
15,887,485 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: WSO CCC OTD 2020-11-16 Pin
Rage16-Nov-20 5:03
professionalRage16-Nov-20 5:03 
GeneralRe: WSO CCC OTD 2020-11-16 Pin
OriginalGriff16-Nov-20 5:09
mveOriginalGriff16-Nov-20 5:09 
GeneralOi! Rage! Where's the CCC? Pin
OriginalGriff15-Nov-20 23:22
mveOriginalGriff15-Nov-20 23:22 
GeneralRe: Oi! Rage! Where's the CCC? Pin
Rage15-Nov-20 23:40
professionalRage15-Nov-20 23:40 
GeneralQA OP comment of the year Pin
BillWoodruff15-Nov-20 21:11
professionalBillWoodruff15-Nov-20 21:11 
GeneralRe: QA OP comment of the year Pin
Sander Rossel16-Nov-20 1:17
professionalSander Rossel16-Nov-20 1:17 
GeneralRe: QA OP comment of the year Pin
honey the codewitch16-Nov-20 3:29
mvahoney the codewitch16-Nov-20 3:29 
GeneralRe: QA OP comment of the year Pin
Sander Rossel16-Nov-20 3:51
professionalSander Rossel16-Nov-20 3:51 
He's actually right, I think.
You say "The proper way to request that a disposable object dispose itself is IDisposable.Dispose()."
But his point is that while TcpClient is IDisposable, you can't call Dispose on it.
When you try, you get the message "TcpClient.Dispose(bool) is inaccessible due to its protection level"
Like I said, in my answer to his question, you can either cast the TcpClient to an IDisposable and call Dispose or you can call Close, which calls Dispose internally.
The Dispose method is available in .NET 4.7.2, but not in 4.5 and earlier (haven't checked versions between those).
So this guy may be right that it's a bug... In any case, he's right that he can't simply call Dispose() despite it being an IDisposable Smile | :)

GeneralRe: QA OP comment of the year Pin
honey the codewitch16-Nov-20 3:54
mvahoney the codewitch16-Nov-20 3:54 
GeneralRe: QA OP comment of the year Pin
Sander Rossel16-Nov-20 4:00
professionalSander Rossel16-Nov-20 4:00 
GeneralRe: QA OP comment of the year Pin
honey the codewitch16-Nov-20 4:04
mvahoney the codewitch16-Nov-20 4:04 
GeneralRe: QA OP comment of the year Pin
Sander Rossel16-Nov-20 4:29
professionalSander Rossel16-Nov-20 4:29 
Generalnearly six years later life throws me a bone Pin
BillWoodruff15-Nov-20 16:16
professionalBillWoodruff15-Nov-20 16:16 
GeneralRe: nearly six years later life throws me a bone Pin
Super Lloyd15-Nov-20 18:13
Super Lloyd15-Nov-20 18:13 
GeneralRe: nearly six years later life throws me a bone Pin
OriginalGriff15-Nov-20 22:57
mveOriginalGriff15-Nov-20 22:57 
RantWhat in the heck? When power saving goes wrong. Pin
honey the codewitch15-Nov-20 13:24
mvahoney the codewitch15-Nov-20 13:24 
GeneralRe: What in the heck? When power saving goes wrong. Pin
Rick York15-Nov-20 15:15
mveRick York15-Nov-20 15:15 
GeneralRe: What in the heck? When power saving goes wrong. Pin
honey the codewitch15-Nov-20 16:52
mvahoney the codewitch15-Nov-20 16:52 
GeneralRe: What in the heck? When power saving goes wrong. Pin
BillWoodruff15-Nov-20 16:33
professionalBillWoodruff15-Nov-20 16:33 
GeneralRe: What in the heck? When power saving goes wrong. Pin
honey the codewitch15-Nov-20 16:47
mvahoney the codewitch15-Nov-20 16:47 
GeneralRe: What in the heck? When power saving goes wrong. Pin
BillWoodruff15-Nov-20 17:43
professionalBillWoodruff15-Nov-20 17:43 
GeneralRe: What in the heck? When power saving goes wrong. Pin
Peter_in_278015-Nov-20 17:27
professionalPeter_in_278015-Nov-20 17:27 
GeneralRe: What in the heck? When power saving goes wrong. Pin
honey the codewitch15-Nov-20 17:48
mvahoney the codewitch15-Nov-20 17:48 
GeneralRe: What in the heck? When power saving goes wrong. Pin
CPallini15-Nov-20 20:20
mveCPallini15-Nov-20 20:20 
GeneralFun with Outlook Pin
Richard Andrew x6415-Nov-20 13:06
professionalRichard Andrew x6415-Nov-20 13:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.