Category: C#
How to check if the number is positive or negative in C# ?
You can use the > and < operator to check if the number is a positive or negative number in C#. How to check if the number is positive or negative in C# ? If the number is less than zero , it can be considered as negative number. If the number is greater than zero , it is a positive number. Below is a…
C# Compiler Warning – CS0436 the type ‘{1}’ in ‘{0}’ conflicts with t
In this blog post, you’ll learn more about the C# Compiler Warning – CS0436 and the related message description C# Compiler Warning Code CS0436 C# Compiler Description for the Code :CS0436 The type ‘{1}’ in ‘{0}’ conflicts with the imported type ‘{3}’ in ‘{2}’. Using the type defined in ‘{0}’.
C# Compiler Error – CS7041 each linked resource and module must hav
In this blog post, you’ll learn more about the C# Compiler Error – CS7041 and the related message description C# Compiler Error Code CS7041 C# Compiler Description for the Code :CS7041 Each linked resource and module must have a unique filename. Filename ‘{0}’ is specified more than once in this assembly
C# Compiler Error – CS1673 anonymous methods, lambda expressions, q
In this blog post, you’ll learn more about the C# Compiler Error – CS1673 and the related message description C# Compiler Error Code CS1673 C# Compiler Description for the Code :CS1673 Anonymous methods, lambda expressions, query expressions, and local functions inside structs cannot access instance members of ‘this’. Consider copying ‘this’ to a local variable outside the anonymous method, lambda expression, query expression, or local…
C# Compiler Error – CS7017 member definition, statement, or end-of-
In this blog post, you’ll learn more about the C# Compiler Error – CS7017 and the related message description C# Compiler Error Code CS7017 C# Compiler Description for the Code :CS7017 Member definition, statement, or end-of-file expected
C# Compiler Error – CS0527 type ‘{0}’ in interface list is not an i
In this blog post, you’ll learn more about the C# Compiler Error – CS0527 and the related message description C# Compiler Error Code CS0527 C# Compiler Description for the Code :CS0527 Type ‘{0}’ in interface list is not an interface
C# Compiler Error – CS1995 the ‘await’ operator may only be used in
In this blog post, you’ll learn more about the C# Compiler Error – CS1995 and the related message description C# Compiler Error Code CS1995 C# Compiler Description for the Code :CS1995 The ‘await’ operator may only be used in a query expression within the first collection expression of the initial ‘from’ clause or within the collection expression of a ‘join’ clause
C# Compiler Error – CS0409 a constraint clause has already been spe
In this blog post, you’ll learn more about the C# Compiler Error – CS0409 and the related message description C# Compiler Error Code CS0409 C# Compiler Description for the Code :CS0409 A constraint clause has already been specified for type parameter ‘{0}’. All of the constraints for a type parameter must be specified in a single where clause.
C# Compiler Error – CS1063 the best overloaded add method ‘{0}’ for
In this blog post, you’ll learn more about the C# Compiler Error – CS1063 and the related message description C# Compiler Error Code CS1063 C# Compiler Description for the Code :CS1063 The best overloaded Add method ‘{0}’ for the collection initializer element is obsolete. {1}
C# Compiler Error – CS8400 feature ‘{0}’ is not available in c# 8.0
In this blog post, you’ll learn more about the C# Compiler Error – CS8400 and the related message description C# Compiler Error Code CS8400 C# Compiler Description for the Code :CS8400 Feature ‘{0}’ is not available in C# 8.0. Please use language version {1} or greater.
C# Compiler Error – CS1508 resource identifier ‘{0}’ has already be
In this blog post, you’ll learn more about the C# Compiler Error – CS1508 and the related message description C# Compiler Error Code CS1508 C# Compiler Description for the Code :CS1508 Resource identifier ‘{0}’ has already been used in this assembly
C# Compiler Error – CS8138 cannot reference ‘system.runtime.compile
In this blog post, you’ll learn more about the C# Compiler Error – CS8138 and the related message description C# Compiler Error Code CS8138 C# Compiler Description for the Code :CS8138 Cannot reference ‘System.Runtime.CompilerServices.TupleElementNamesAttribute’ explicitly. Use the tuple syntax to define tuple names.
C# Compiler Error – CS8030 anonymous function converted to a void r
In this blog post, you’ll learn more about the C# Compiler Error – CS8030 and the related message description C# Compiler Error Code CS8030 C# Compiler Description for the Code :CS8030 Anonymous function converted to a void returning delegate cannot return a value
How to Remove Duplicates in List using LINQ?
There are times when you have to remove duplicate entried from a List from Your C# program and one of the easiest way to do that is using the combination of the LINQ and IEqualityComparer interface. Assume that you have a list of Actors as shown below ID : 1 , Name = Vijay ,Language = TamilID : 2 , Name = Rajni ,Language =…
C# Compiler Error – CS8781 relational patterns may not be used for
In this blog post, you’ll learn more about the C# Compiler Error – CS8781 and the related message description C# Compiler Error Code CS8781 C# Compiler Description for the Code :CS8781 Relational patterns may not be used for a value of type ‘{0}’.
C# Compiler Error – CS1654 cannot modify members of ‘{0}’ because i
In this blog post, you’ll learn more about the C# Compiler Error – CS1654 and the related message description C# Compiler Error Code CS1654 C# Compiler Description for the Code :CS1654 Cannot modify members of ‘{0}’ because it is a ‘{1}’
C# Compiler Error – CS1639 the managed coclass wrapper class signat
In this blog post, you’ll learn more about the C# Compiler Error – CS1639 and the related message description C# Compiler Error Code CS1639 C# Compiler Description for the Code :CS1639 The managed coclass wrapper class signature ‘{0}’ for interface ‘{1}’ is not a valid class name signature
C# Compiler Error – CS1679 invalid extern alias for ‘/reference’; ‘
In this blog post, you’ll learn more about the C# Compiler Error – CS1679 and the related message description C# Compiler Error Code CS1679 C# Compiler Description for the Code :CS1679 Invalid extern alias for ‘/reference’; ‘{0}’ is not a valid identifier
How to Programatically Check if the Location Services is Turned On or Off in Windows Phone 8 ?
Below is a sample code snippet that demonstrates how to programmatically check if the Location Services is turned On or Off in Windows Phone 8 . How to Programatically Check if the Location Services is Turned On or Off in Windows Phone 8 ?
C# Compiler Error – CS8917 the delegate type could not be inferred.
In this blog post, you’ll learn more about the C# Compiler Error – CS8917 and the related message description C# Compiler Error Code CS8917 C# Compiler Description for the Code :CS8917 The delegate type could not be inferred.