Category: C#

C# Compiler Error – CS4033 the ‘await’ operator can only be used wi

In this blog post, you’ll learn more about the C# Compiler Error – CS4033 and the related message description C# Compiler Error Code CS4033 C# Compiler Description for the Code :CS4033 The ‘await’ operator can only be used within an async method. Consider marking this method with the ‘async’ modifier and changing its return type to ‘Task’.

C# Compiler Warning – CS1974 the dynamically dispatched call to metho

In this blog post, you’ll learn more about the C# Compiler Warning – CS1974 and the related message description C# Compiler Warning Code CS1974 C# Compiler Description for the Code :CS1974 The dynamically dispatched call to method ‘{0}’ may fail at runtime because one or more applicable overloads are conditional methods.

How to Download Web Content asynchronously in C# ?

In one of the previous article , we demonstrated on how to download Web Content asynchronously in C# . This article will demonstrate how to do it asynchronously. How to Download Web Content asynchronously in C# ? The output file is generally saved in the same folder where the exe exists.

Anonymous Types are read-only in C#

If you try to set a value to the anonymous type in C# , you will receive an compiler error . The properties within the anonymous types are read-only properties. Anonymous Types are read-only in C# In the above code snippet , you will receive an compiler error “Error    CS0200    Property or indexer ‘<anonymous type: string FirstName, string Last>.FirstName’ cannot be assigned to — it…