Category: C#
C# Compiler Error – CS1608 the requiredattribute attribute is not p
In this blog post, you’ll learn more about the C# Compiler Error – CS1608 and the related message description C# Compiler Error Code CS1608 C# Compiler Description for the Code :CS1608 The RequiredAttribute attribute is not permitted on C# types
C# Compiler Error – CS0834 a lambda expression with a statement bod
In this blog post, you’ll learn more about the C# Compiler Error – CS0834 and the related message description C# Compiler Error Code CS0834 C# Compiler Description for the Code :CS0834 A lambda expression with a statement body cannot be converted to an expression tree
C# Compiler Warning – CS3024 constraint type ‘{0}’ is not cls-complia
In this blog post, you’ll learn more about the C# Compiler Warning – CS3024 and the related message description C# Compiler Warning Code CS3024 C# Compiler Description for the Code :CS3024 Constraint type ‘{0}’ is not CLS-compliant
How to sort an array in C# ?
If you want to sort an array in C#.NET , you can use the Array.Sort method to do it. How to sort an array in C# ? Below is a sample code snippet demonstrating the usage of the Array.Sort method to sort an array in C#.
C# Compiler Warning – CS1718 comparison made to same variable; did yo
In this blog post, you’ll learn more about the C# Compiler Warning – CS1718 and the related message description C# Compiler Warning Code CS1718 C# Compiler Description for the Code :CS1718 Comparison made to same variable; did you mean to compare something else?
C# Compiler Error – CS7055 unmanaged type ‘{0}’ is only valid for f
In this blog post, you’ll learn more about the C# Compiler Error – CS7055 and the related message description C# Compiler Error Code CS7055 C# Compiler Description for the Code :CS7055 Unmanaged type ‘{0}’ is only valid for fields.
C# Compiler Error – CS0264 partial declarations of ‘{0}’ must have
In this blog post, you’ll learn more about the C# Compiler Error – CS0264 and the related message description C# Compiler Error Code CS0264 C# Compiler Description for the Code :CS0264 Partial declarations of ‘{0}’ must have the same type parameter names in the same order
WP8 Error – Cannot clear the icon while in a list Parameter name: value
When using the ApplicationBar in the Windows Phone Application and dynamically setting the IconButtons from code behind , I encounter this error . Cannot clear the icon while in a list Parameter name: value The cause of the error and the fix is pretty straight forward . I was setting the IconUri of the ApplicationBarIcon button programmatically and the value of the IconUri was not…
How to Convert a List to ObservableCollection in C#?
This simple blog post will explain how to convert a List of Object to ObservableCollection of Object in C# and Windows Phone 8. There are times when you want to convert a List of Object to ObservableCollection specially when binding an ObservableCollection to the LongListSelector etc. The reasons for this can be several. How to Convert a List to ObservableCollection in C#? To Convert a…
C# Compiler Error – CS0595 invalid real literal.
In this blog post, you’ll learn more about the C# Compiler Error – CS0595 and the related message description C# Compiler Error Code CS0595 C# Compiler Description for the Code :CS0595 Invalid real literal.
C# Compiler Error – CS8937 at least one top-level statement must be
In this blog post, you’ll learn more about the C# Compiler Error – CS8937 and the related message description C# Compiler Error Code CS8937 C# Compiler Description for the Code :CS8937 At least one top-level statement must be non-empty.
How to repeat a string N number of times in C# ?
Do you want to repeat a string N number of times in C# ? . You can use the string.concat and Enumerable.Repeat to achieve it in .NET Framework 4.0 and higher. How to repeat a string N number of times in C# ?