devxlogo

June 27, 2017

Quickly escape the escape characters in a string.

C# provides you a way to escape the problematic characters in a string through the ???@??? symbol. Just place it before the string, and the compiler will escape those characters.For e.g. String filePath = @???c:windowssystem32???;Thus you do not have to escape the slashes in the string in the above example.

View the Certificate of a Website in Chrome

You can easily access a website’s certificate in Chrome via the developer tools. Go to developer tools (F12), Security tab. In the Security Overview section, choose “view certificate.”