Category: C#

C# Compiler Error – CS1929 ‘{0}’ does not contain a definition for

In this blog post, you’ll learn more about the C# Compiler Error – CS1929 and the related message description C# Compiler Error Code CS1929 C# Compiler Description for the Code :CS1929 ‘{0}’ does not contain a definition for ‘{1}’ and the best extension method overload ‘{2}’ requires a receiver of type ‘{3}’

C# Program – Multiline string literal in C#

If you are looking at an easy way to create a multiline string literal in C#, then you use the verbatim string literal as shown in the below code snippet. C# Program – Multiline string literal in C# Using the verbatim stting ensures that it allows multiple lunes and also you donot need to have any escape special characters (except for double quotes).

C# Compiler Error – CS1997 since ‘{0}’ is an async method that retu

In this blog post, you’ll learn more about the C# Compiler Error – CS1997 and the related message description C# Compiler Error Code CS1997 C# Compiler Description for the Code :CS1997 Since ‘{0}’ is an async method that returns ‘Task’, a return keyword must not be followed by an object expression. Did you intend to return ‘Task’?

How to Use Split Function in VB.NET?

The Split function in VB.NET (Visual Basic.NET) lets the developers to split the string based on the delimiter and return one – dimensional array that contains the substring. How to Use Split Function in VB.NET? Below is a sample code snippet that demonstrates how to use the Split function in VB.NET. Output of Split Function