How to escape brackets using string.Format in C# and VB.NET
Escaping Brackets in String.Format is very simple. To output a { use {{ and to output a } use }}.
All the Code Snippets and Samples you need
Escaping Brackets in String.Format is very simple. To output a { use {{ and to output a } use }}.
To convert Stream to ByteArray in C# and VB.NET you can use the following snippet. Samples Sample C# public static byte[] StreamToByteArray(Stream inputStream) { byte[] bytes = new byte[16384]; using…
To Convert String to Stream in C# and VB.NET you can use the following snippet. Sample C# Sample VB.NET
To generate Random Alphanumeric Strings in C# and VB.NET you can use the following snippet. Sample C# Sample VB.NET
The best Datatype for money in C# and VB.NET is Decimal. What is the MSDN saying about Decimal. The Decimal value type represents decimal numbers ranging from positive 79,228,162,514,264,337,593,543,950,335 to…
If you want to change the information, the debugger variable window shows for your class, you can use the DebuggerDisplayAttribute. Simply put the Attribut above your class declaration. The Value…
To get focusedrow cell value using Devexpress XtraGrid in C# and VB.NET you can use one of the following ways. Samples Sample C# string value = gridView1.GetFocusedRowCellValue("ColumnName").ToString(); string value =…
To Bubblesort ILists in C# and VB.NET you can use the follwing snippet. Sample C# Sample VB.NET
To get Windows Product Name in C# and VB.NET you can use the following snippet. Sample C# Sample VB.NET Tipp: To use ManagementObjectSearcher you need to set a Reference to…
To map protected Properties using AutoMapper in C# and VB.NET you can use the following snippet. Samples Samples C# using System; using AutoMapper; namespace de.Fesslersoft.AutoMapperMapToProtectedProperties { class Program { static…