Category: C#

C# Compiler Error – CS1758 cannot embed interop type ‘{0}’ found in

In this blog post, you’ll learn more about the C# Compiler Error – CS1758 and the related message description C# Compiler Error Code CS1758 C# Compiler Description for the Code :CS1758 Cannot embed interop type ‘{0}’ found in both assembly ‘{1}’ and ‘{2}’. Consider setting the ‘Embed Interop Types’ property to false.

C# Compiler Error – CS8418 ‘{0}’: type used in a using statement mu

In this blog post, you’ll learn more about the C# Compiler Error – CS8418 and the related message description C# Compiler Error Code CS8418 C# Compiler Description for the Code :CS8418 ‘{0}’: type used in a using statement must be implicitly convertible to ‘System.IDisposable’. Did you mean ‘await using’ rather than ‘using’?

How to Call Other Constructors within the Same Class in C# ?

There are times when you want to avoid duplicating code and want to reuse them when working on multiple constructors . If you want to call other constructors from a constructor within the same class , you need to use the this keyword . How to Call Other Constructors within the Same Class in C# ? Below is a sample code snippet that demonstrates how…

What are the Different Tile templates in Windows Phone 8?

The Windows Phone 8 SDK provides the developers with the option to use one of the below tile templates in their windows phone 8 app. 1. TemplateFlip 2. TemplateCycle 3. TemplateIconic What are the Different Tile templates in Windows Phone 8? The TemplateFlip provides the developers to display information in the front and the back side of the tile where the tile flips front and…

How to Split a String on newlines in C#?

Ever wanted to split an input string in to new lines in .NET (c#) that has a new line character? Below is a sample code snippet that demonstrates how to do it. How to Split a String on newlines in C#?