Category: C#

C# Compiler Error – CS0564 the first operand of an overloaded shift

In this blog post, you’ll learn more about the C# Compiler Error – CS0564 and the related message description C# Compiler Error Code CS0564 C# Compiler Description for the Code :CS0564 The first operand of an overloaded shift operator must have the same type as the containing type, and the type of the second operand must be int

C# Compiler Error – CS1513 } expected

In this blog post, you’ll learn more about the C# Compiler Error – CS1513 and the related message description C# Compiler Error Code CS1513 C# Compiler Description for the Code :CS1513 } expected

How to Combine a Filename with a Directory in C# ?

If you need to combine the filename with a directory name in C# , use the built in Path class to do it instead of doing it manually. How to Combine a Filename with a Directory in C# ? Below is a sample code snippet demonstrating how to use Path.Combine method in C#.

How to Check if the ArrayList is read-only in C# ?

There are times when you would use the read-only wrapper in order to prevent modifying the ArrayList. We use the ArrayList.ReadOnly method to create such collection. When doing so , you might want to check if the ArrayList is Read-only or not. How to Check if the ArrayList is read-only in C# ? Use the IsReadOnly property defined in the ArrayList object to check this.

C# Compiler Warning – CS8644 ‘{0}’ does not implement interface membe

In this blog post, you’ll learn more about the C# Compiler Warning – CS8644 and the related message description C# Compiler Warning Code CS8644 C# Compiler Description for the Code :CS8644 ‘{0}’ does not implement interface member ‘{1}’. Nullability of reference types in interface implemented by the base type doesn’t match.

C# Compiler Error – CS0577 the conditional attribute is not valid o

In this blog post, you’ll learn more about the C# Compiler Error – CS0577 and the related message description C# Compiler Error Code CS0577 C# Compiler Description for the Code :CS0577 The Conditional attribute is not valid on ‘{0}’ because it is a constructor, destructor, operator, lambda expression, or explicit interface implementation

How to Pass Method or Function as Parameter in C# ?

The C# 3.0 and higher version provides the option for the user to specify the function or method as parameter using the Func delegate . How to Pass Method or Function as Parameter in C# ? Below is a sample code snippet demonstrating how to pass method as parameter in C# using Func delegate.