Category: C#

How to send email in Windows Phone 8 Application Programatically using C#?

The Windows Phone 8 SDK provides the EmailComposeTask which can be used to send email in Windows Phone 8 Programatically. The EmailComposeTask launches the Email Compose screen which lets the user to verify the email content and tap on the “send” button to send email. How to send email in Windows Phone 8 Application Programatically using C#? Below is a sample code snippet that demonstrates…

How to Implement Multiple order by in LINQ using C#?

There are scenarios where one might want to implement multiple order by statements when using LINQ in C#. For example, you might want to sort the list of article by category and then by date. Below is a sample code snippet that demonstrates how to How to Implement Multiple order by in LINQ using C# ? How to Implement Multiple order by in LINQ using…

C# Compiler Error – CS8204 for type ‘{0}’ to be used as an asyncmet

In this blog post, you’ll learn more about the C# Compiler Error – CS8204 and the related message description C# Compiler Error Code CS8204 C# Compiler Description for the Code :CS8204 For type ‘{0}’ to be used as an AsyncMethodBuilder for type ‘{1}’, its Task property should return type ‘{1}’ instead of type ‘{2}’.

C# Compiler Warning – CS8784 generator ‘{0}’ failed to initialize. it

In this blog post, you’ll learn more about the C# Compiler Warning – CS8784 and the related message description C# Compiler Warning Code CS8784 C# Compiler Description for the Code :CS8784 Generator ‘{0}’ failed to initialize. It will not contribute to the output and compilation errors may occur as a result. Exception was of type ‘{1}’ with message ‘{2}’