How to change the encoding of a String using C# and VB.NET
To change the encoding of a String using .NET you can use this Extension Method which is part of the Fesslersoft.Extensions. This method needs a source and a target encoding.…
How to convert a Securestring to String using C# and VB.NET
Here is an example on how to convert a Securestring to String using C# and VB.NET. Please remember that storing the data in a plain string will be beat the…
How to convert a String to Securestring using C# and VB.NET
Here is an example on how to convert a String to Securestring using C# and VB.NET. Please remember that the plain string which will be converted to SecureString beats the…
How to prevent your IOS app from going into sleeping mode using Objective-C
To prevent your IOS app from going into sleeping mode using Objective-C you can use the snippet below. Sample Objective-C
How to Remove duplicates from a IEnumerable using C# or VB.NET
To Remove duplicates from a IEnumerable using C# or VB.NET you can use the snippet below. Sample .NET 3.5 and newer Sample C# Sample VB.NET (autogenerated) Sample .NET 2.0 Sample…
How to read a embedded resource to String in C# and VB.NET
To read a embedded resource to String in C# and VB.NET you can use the snippet below. Keep in mind that this snippet is using Encoding.Default which might not always…
How to convert Color to Hex and Hex to Color using C# and VB.NET
To convert a Color to Hex and vice versa using C# and VB.NET you can use the snippets below. Sample C# Sample VB.NET (autoconverted)
How to match strings using wildcards in C# and VB.NET
To match strings using wildcards in C# and VB.NET you can use the following snippet. It will internally convert the wildcard string to a Regex. The Console-Output of this sample…
Top 10 reads of May 2015
These are the Top 10 reads of May 2015. How to get the selected row index in Devexpress Xtragrid Control using C# and VB.NET How to change the BackgroundColor of…
How to get the current Database and Log Filesize using MSSQL
To get the current Database and Log Filesize using MSSQL you can use the snippet below. Tested using SQL Server 2012. Sample MSSQL Sample Output