Category: C#

C# Compiler Error – CS1726 friend assembly reference ‘{0}’ is inval

In this blog post, you’ll learn more about the C# Compiler Error – CS1726 and the related message description C# Compiler Error Code CS1726 C# Compiler Description for the Code :CS1726 Friend assembly reference ‘{0}’ is invalid. Strong-name signed assemblies must specify a public key in their InternalsVisibleTo declarations.

C# Compiler Error – CS0315 the type ‘{3}’ cannot be used as type pa

In this blog post, you’ll learn more about the C# Compiler Error – CS0315 and the related message description C# Compiler Error Code CS0315 C# Compiler Description for the Code :CS0315 The type ‘{3}’ cannot be used as type parameter ‘{2}’ in the generic type or method ‘{0}’. There is no boxing conversion from ‘{3}’ to ‘{1}’.

Documentation Comments in C#

In C# , you can create the Documentation Comments for your code using the predefined XML tags before the class or the block of the code thay refer to. For example namespace WindowsFormsApplication1 {     /// <summary>     /// This is a test Class Form1     /// </summary>     public partial class Form1 : Form     {         /// <summary>         /// Constructor for the…