Category: C#

C# Compiler Error – CS8384 tuple types used as operands of an == or

In this blog post, you’ll learn more about the C# Compiler Error – CS8384 and the related message description C# Compiler Error Code CS8384 C# Compiler Description for the Code :CS8384 Tuple types used as operands of an == or != operator must have matching cardinalities. But this operator has tuple types of cardinality {0} on the left and {1} on the right.

Alternate Method to Navigate from Page in Windows Phone 8 using C#

The NavigationService.Navigate method i.e. generally used to navigate from one page to another page in Windows Phone 8 SDK. The NavigationService also exposes a property “Source” which can be used to Get/Set the URI of the page . By Setting this property, the Application Frame loads the specified page. Alternate Method to Navigate from Page in Windows Phone 8 using C# Below is a sample…

Important Concepts of Object Oriented Programming in C#

OOPS (Object Oriented Programming) is extensively used in software development to solve many problems. Below are some of the important keywords / concepts of Object Oriented Programming in C# 1. Classes & Objects (Instances) 2. Data Abstraction 3. Encapsulation 4. Inheritance 5. Polymorphism 6. Message Passing etc.

Default Value of Row and Column attached properties in XAML

In the Windows Phone XAML page , when you place a control inside the grid column or row , you would have noticed that the sometimes the row and column value are not specified . This means that the row and column attached properties of the grid defaults to the value zero and hence its not mandatory to specify Grid.Column or Grid.Row to 0 when…

C# Compiler Error – CS1725 friend assembly reference ‘{0}’ is inval

In this blog post, you’ll learn more about the C# Compiler Error – CS1725 and the related message description C# Compiler Error Code CS1725 C# Compiler Description for the Code :CS1725 Friend assembly reference ‘{0}’ is invalid. InternalsVisibleTo declarations cannot have a version, culture, public key token, or processor architecture specified.

C# Compiler Error – CS0182 an attribute argument must be a constant

In this blog post, you’ll learn more about the C# Compiler Error – CS0182 and the related message description C# Compiler Error Code CS0182 C# Compiler Description for the Code :CS0182 An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type

C# Compiler Error – CS8417 ‘{0}’: type used in an asynchronous usin

In this blog post, you’ll learn more about the C# Compiler Error – CS8417 and the related message description C# Compiler Error Code CS8417 C# Compiler Description for the Code :CS8417 ‘{0}’: type used in an asynchronous using statement must be implicitly convertible to ‘System.IAsyncDisposable’ or implement a suitable ‘DisposeAsync’ method. Did you mean ‘using’ rather than ‘await using’?

C# Compiler Warning – CS8621 nullability of reference types in return

In this blog post, you’ll learn more about the C# Compiler Warning – CS8621 and the related message description C# Compiler Warning Code CS8621 C# Compiler Description for the Code :CS8621 Nullability of reference types in return type of ‘{0}’ doesn’t match the target delegate ‘{1}’ (possibly because of nullability attributes).