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.…
All the Code Snippets and Samples you need
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.…
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…
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…
To prevent your IOS app from going into sleeping mode using Objective-C you can use the snippet below. Sample Objective-C
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…
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…
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)
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…
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…
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