Category: C#
Difference between Hash table and Dictionary in .NET
Here’s a simple difference between Hashtable and Dictionary in .NET Dictionary Hashtable It is generic in nature It is non generic in nature It is defined in the namespace System.Collections.Generic It is defined in the namespace System.Collections When a request is made to the dictionary and if the key does not exists , you get an exception When a request is made to the Hashtable…
How to update the value in a Dictionary in C# ?
Below is a sample code snippet demonstrating how to update the value that is stored within the dictionary using C#. We access the dictionary with the key as index and set the value. How to update the value in a Dictionary in C# ?
C# Compiler Error – CS7071 assembly reference ‘{0}’ is invalid and
In this blog post, you’ll learn more about the C# Compiler Error – CS7071 and the related message description C# Compiler Error Code CS7071 C# Compiler Description for the Code :CS7071 Assembly reference ‘{0}’ is invalid and cannot be resolved
C# Compiler Error – CS0103 the name ‘{0}’ does not exist in the cur
In this blog post, you’ll learn more about the C# Compiler Error – CS0103 and the related message description C# Compiler Error Code CS0103 C# Compiler Description for the Code :CS0103 The name ‘{0}’ does not exist in the current context
C# Compiler Error – CS8864 records may only inherit from object or
In this blog post, you’ll learn more about the C# Compiler Error – CS8864 and the related message description C# Compiler Error Code CS8864 C# Compiler Description for the Code :CS8864 Records may only inherit from object or another record
Launch the Airplane mode Settings App using URI Scheme in Windows Phone 8
Below is a sample code snippet demonstrating how launch the Airplane mode Settings app via the URI Scheme and LaunchUriAsync method in Windows Phone using C#. Launch the Airplane mode Settings App using URI Scheme in Windows Phone 8
C# Compiler Warning – CS8607 a possible null value may not be used fo
In this blog post, you’ll learn more about the C# Compiler Warning – CS8607 and the related message description C# Compiler Warning Code CS8607 C# Compiler Description for the Code :CS8607 A possible null value may not be used for a type marked with [NotNull] or [DisallowNull]
C# Compiler Error – CS0217 in order to be applicable as a short cir
In this blog post, you’ll learn more about the C# Compiler Error – CS0217 and the related message description C# Compiler Error Code CS0217 C# Compiler Description for the Code :CS0217 In order to be applicable as a short circuit operator a user-defined logical operator (‘{0}’) must have the same return type and parameter types
What is the Difference between Readonly and Const in C# ?
If you want to have a field whose value cannot be changed at runtime , you can use either const or readonly keyword . What is the Difference between ReadOnly and Const in C# ? The constant fields must be defined when declaring and cannot be changed at runtime . It is a implicitly static . The read only field can be set when declaring…
C# Compiler Error – CS0406 the class type constraint ‘{0}’ must com
In this blog post, you’ll learn more about the C# Compiler Error – CS0406 and the related message description C# Compiler Error Code CS0406 C# Compiler Description for the Code :CS0406 The class type constraint ‘{0}’ must come before any other constraints
C# Compiler Warning – CS1697 different checksum values given for ‘{0}
In this blog post, you’ll learn more about the C# Compiler Warning – CS1697 and the related message description C# Compiler Warning Code CS1697 C# Compiler Description for the Code :CS1697 Different checksum values given for ‘{0}’
C# Compiler Error – CS2015 ‘{0}’ is a binary file instead of a text
In this blog post, you’ll learn more about the C# Compiler Error – CS2015 and the related message description C# Compiler Error Code CS2015 C# Compiler Description for the Code :CS2015 ‘{0}’ is a binary file instead of a text file
C# Compiler Error – CS8093 extension method groups are not allowed
In this blog post, you’ll learn more about the C# Compiler Error – CS8093 and the related message description C# Compiler Error Code CS8093 C# Compiler Description for the Code :CS8093 Extension method groups are not allowed as an argument to ‘nameof’.
C# Compiler Warning – CS7080 the callermembernameattribute applied to
In this blog post, you’ll learn more about the C# Compiler Warning – CS7080 and the related message description C# Compiler Warning Code CS7080 C# Compiler Description for the Code :CS7080 The CallerMemberNameAttribute applied to parameter ‘{0}’ will have no effect. It is overridden by the CallerFilePathAttribute.
Different Operators in C#
Below is a list of some of the operators in C# Arithmetic Operators + , – , * , / , % Logical Operators & , | , ^ , ~ , && , || , ! Increment and Decrement Operators ++ , — Bit Shift Operators << , >> Comparison Operators == , != , <> , <= , >= Assignment Operator = ,…
C# Compiler Error – CS8116 it is not legal to use nullable type ‘{0
In this blog post, you’ll learn more about the C# Compiler Error – CS8116 and the related message description C# Compiler Error Code CS8116 C# Compiler Description for the Code :CS8116 It is not legal to use nullable type ‘{0}?’ in a pattern; use the underlying type ‘{0}’ instead.
C# Compiler Error – CS0426 the type name ‘{0}’ does not exist in th
In this blog post, you’ll learn more about the C# Compiler Error – CS0426 and the related message description C# Compiler Error Code CS0426 C# Compiler Description for the Code :CS0426 The type name ‘{0}’ does not exist in the type ‘{1}’
C# Compiler Error – CS1947 range variable ‘{0}’ cannot be assigned
In this blog post, you’ll learn more about the C# Compiler Error – CS1947 and the related message description C# Compiler Error Code CS1947 C# Compiler Description for the Code :CS1947 Range variable ‘{0}’ cannot be assigned to — it is read only
Can Windows Phone 8 SDK be installed on 32 bit Windows 8 system?
This is one of the most frequently asked question by most of the developers. Can I install Windows Phone 8 SDK on 32 bit Windows 8 machine? The simple answer is no. The Windows Phone 8 SDK is supported on Windows 8 64 bit (x64) client versions. Know more about the Windows Phone 8 SDK prerequisites here
C# Compiler Error – CS0500 ‘{0}’ cannot declare a body because it i
In this blog post, you’ll learn more about the C# Compiler Error – CS0500 and the related message description C# Compiler Error Code CS0500 C# Compiler Description for the Code :CS0500 ‘{0}’ cannot declare a body because it is marked abstract