3 Reusable Code Snippet Topics

Remove Filter
Member Avatar for Ketsuekiame

Now, before you say it already exists (because it does) I found that those didn't really have the generic ability to find any control on a form, regardless of containers. So, here you have a piece of code which will find any control on a form and will also search …

Member Avatar for Franz_1
2
308
Member Avatar for Ketsuekiame

This "FakeWebClient" will allow a C# application to send and receive cookies as part of the request. This behaviour is not available by default. Please note that on line 35 there is a possible NullReferenceException, I managed this at a level higher but you may wish to handle it in …

Member Avatar for Pavel_47
3
5K
Member Avatar for Ketsuekiame

So, in answering another thread on this forum, I decided to do some performance testing on String. Mainly because a friend of mine said "You should always use `new String` it's the fastest!". I wasn't convinced and argued in favour of StringBuilder, at which point I was directed to some …

Member Avatar for TnTinMN
0
252

The End.