Category: C#
How to make a Type Sortable on Different Criteria in C# ?
IComparable interface is a great way to sort your objects by using the sorting routines of the List. There is a another interface called IComparer<T> which allows the objects to be sorted based on different criteria. How to make a Type Sortable on Different Criteria in C# ? For example , if you wanted to sort the Employee objects by Id , you can create…
C# Compiler Error – CS7056 unable to resolve file path ‘{0}’ specif
In this blog post, you’ll learn more about the C# Compiler Error – CS7056 and the related message description C# Compiler Error Code CS7056 C# Compiler Description for the Code :CS7056 Unable to resolve file path ‘{0}’ specified for the named argument ‘{1}’ for PermissionSet attribute
How to Find if an Integer Is Even using Bitwise Operator in C# ?
Below is a sample code snippet that demonstrates how to find if an Integer is even using Bitwise Operator in C#. How to Find if an Integer Is Even using Bitwise Operator in C# ?
C# Compiler Error – CS0245 destructors and object.finalize cannot b
In this blog post, you’ll learn more about the C# Compiler Error – CS0245 and the related message description C# Compiler Error Code CS0245 C# Compiler Description for the Code :CS0245 Destructors and object.Finalize cannot be called directly. Consider calling IDisposable.Dispose if available.
C# Compiler Warning – CS1717 assignment made to same variable; did yo
In this blog post, you’ll learn more about the C# Compiler Warning – CS1717 and the related message description C# Compiler Warning Code CS1717 C# Compiler Description for the Code :CS1717 Assignment made to same variable; did you mean to assign something else?
C# Compiler Error – CS1705 assembly ‘{0}’ with identity ‘{1}’ uses
In this blog post, you’ll learn more about the C# Compiler Error – CS1705 and the related message description C# Compiler Error Code CS1705 C# Compiler Description for the Code :CS1705 Assembly ‘{0}’ with identity ‘{1}’ uses ‘{2}’ which has a higher version than referenced assembly ‘{3}’ with identity ‘{4}’
C# Compiler Error – CS8863 only a single record partial declaration
In this blog post, you’ll learn more about the C# Compiler Error – CS8863 and the related message description C# Compiler Error Code CS8863 C# Compiler Description for the Code :CS8863 Only a single record partial declaration may have a parameter list
C# Compiler Warning – CS1572 xml comment has a param tag for ‘{0}’, b
In this blog post, you’ll learn more about the C# Compiler Warning – CS1572 and the related message description C# Compiler Warning Code CS1572 C# Compiler Description for the Code :CS1572 XML comment has a param tag for ‘{0}’, but there is no parameter by that name
C# Compiler Error – CS8904 invalid variance: the type parameter ‘{1
In this blog post, you’ll learn more about the C# Compiler Error – CS8904 and the related message description C# Compiler Error Code CS8904 C# Compiler Description for the Code :CS8904 Invalid variance: The type parameter ‘{1}’ must be {3} valid on ‘{0}’ unless language version ‘{4}’ or greater is used. ‘{1}’ is {2}.
C# Compiler Error – CS7070 security attribute ‘{0}’ is not valid on
In this blog post, you’ll learn more about the C# Compiler Error – CS7070 and the related message description C# Compiler Error Code CS7070 C# Compiler Description for the Code :CS7070 Security attribute ‘{0}’ is not valid on this declaration type. Security attributes are only valid on assembly, type and method declarations.
C# Compiler Error – CS8190 provided source code kind is unsupported
In this blog post, you’ll learn more about the C# Compiler Error – CS8190 and the related message description C# Compiler Error Code CS8190 C# Compiler Description for the Code :CS8190 Provided source code kind is unsupported or invalid: ‘{0}’
C# Compiler Fatal – CS2019 invalid target type for /target: must sp
In this blog post, you’ll learn more about the C# Compiler Fatal – CS2019 and the related message description C# Compiler Fatal Code CS2019 C# Compiler Description for the Code :CS2019 Invalid target type for /target: must specify ‘exe’, ‘winexe’, ‘library’, or ‘module’