HomeCSharpPage 18

CSharp

Showing 341 - 360 of 961 results
C# Error CS1593 – Delegate ‘{0}’ does not take {1} arguments Reason for the Error & Solution Delegate ‘del’ does...
C# Compiler Error CS0182 – An attribute argument must be a constant expression, typeof expression or array creation expression of...
C# Compiler Error CS0061 – Inconsistent accessibility: base interface ‘interface 1’ is less accessible than interface ‘interface 2’ Reason for...
C# Compiler Error CS0215 – The return type of operator True or False must be bool. Reason for the Error...
You can easily convert the C# object to JSON string by using the Newtonsoft.Json NuGet package which is one of...
Do you have a requirement where you would need to count the number of words in a string in C#...
C# 6.0 Features Series How to try C# 6.0 and Rosyln? Getter-only (Read Only) Auto Properties in C# 6.0 Lambda...
C# Compiler Error CS0051 – Inconsistent accessibility: parameter type ‘type’ is less accessible than method ‘method’ Reason for the Error...
This C# program is designed to add two dates together. It allows users to input two dates in the “YYYY-MM-DD”...
C# Error CS0599 – Invalid value for named attribute argument ‘{0}’ Reason for the Error & Solution Invalid value for...
C# Error CS0562 – The parameter of a unary operator must be the containing type Reason for the Error &...
C# Error CS1104 – A parameter array cannot be used with ‘this’ modifier on an extension method Reason for the...
C# Compiler Error CS0545 – ‘function’ : cannot override because ‘property’ does not have an overridable get accessor Reason for...
There are times when you are working on a console application in C# and you might want to get the...
How to Log off from Windows programmatically using C# ? Below is a simple program that lets you to Log...
In geometry, Pythagoras theorem is used to find the length of the hypotenuse of a right-angled triangle. In this task,...
C# Compiler Error CS0509 – ‘class1’ : cannot derive from sealed type ‘class2’ Reason for the Error You’ll get this...
C# Compiler Error CS0523 – Struct member ‘struct2 field’ of type ‘struct1’ causes a cycle in the struct layout Reason...
This C# program retrieves and displays the current local time for the system. Local time represents the time in the...
C# Compiler Error CS0181 – Attribute constructor parameter ‘value’ has type ‘decimal’, which is not a valid attribute parameter type...