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.
How to Clone a Generic List in C#?
Below is a sample code snippet that demonstrates how to clone a generic list in C#. How to Clone a Generic List in C#?
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’?
C# Compiler Error – CS1056 unexpected character ‘{0}’
In this blog post, you’ll learn more about the C# Compiler Error – CS1056 and the related message description C# Compiler Error Code CS1056 C# Compiler Description for the Code :CS1056 Unexpected character ‘{0}’
C# Compiler Error – CS8865 only records may inherit from records.
In this blog post, you’ll learn more about the C# Compiler Error – CS8865 and the related message description C# Compiler Error Code CS8865 C# Compiler Description for the Code :CS8865 Only records may inherit from records.
C# Compiler Error – CS8914 a global using directive cannot be used
In this blog post, you’ll learn more about the C# Compiler Error – CS8914 and the related message description C# Compiler Error Code CS8914 C# Compiler Description for the Code :CS8914 A global using directive cannot be used in a namespace declaration.
C# Compiler Error – CS1674 ‘{0}’: type used in a using statement mu
In this blog post, you’ll learn more about the C# Compiler Error – CS1674 and the related message description C# Compiler Error Code CS1674 C# Compiler Description for the Code :CS1674 ‘{0}’: type used in a using statement must be implicitly convertible to ‘System.IDisposable’.
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…
C# Compiler Error – CS4004 cannot await in an unsafe context
In this blog post, you’ll learn more about the C# Compiler Error – CS4004 and the related message description C# Compiler Error Code CS4004 C# Compiler Description for the Code :CS4004 Cannot await in an unsafe context
C# Compiler Error – CS7026 assembly and module attributes are not a
In this blog post, you’ll learn more about the C# Compiler Error – CS7026 and the related message description C# Compiler Error Code CS7026 C# Compiler Description for the Code :CS7026 Assembly and module attributes are not allowed in this context
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#?