Category: C#
How to Parse a string to Nullable Int in C# ?
Below is a sample code snippet demonstrating how you can convert a string to Nnullable Int in C#. How to Parse a string to Nullable Int in C# ? We use the int.Parse and based on its return value , assign the null or integer value to the Nullable Int.
How to Get the Name of the Anonymous class(type) in C# ?
Below is a sample code snippet which gets the name of the anonymous class . In the below example , the Name and the ID property is set which is anonymous where the type is not specified. When trying to find out the type of the anonymous type , you will get the type as shown in the screenshot below. How to Get the Name…
C# Compiler Error – CS0051 inconsistent accessibility: parameter ty
In this blog post, you’ll learn more about the C# Compiler Error – CS0051 and the related message description C# Compiler Error Code CS0051 C# Compiler Description for the Code :CS0051 Inconsistent accessibility: parameter type ‘{1}’ is less accessible than method ‘{0}’
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.
C# Compiler Error – CS0143 the type ‘{0}’ has no constructors defin
In this blog post, you’ll learn more about the C# Compiler Error – CS0143 and the related message description C# Compiler Error Code CS0143 C# Compiler Description for the Code :CS0143 The type ‘{0}’ has no constructors defined
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…
C# Compiler Warning – CS0164 this label has not been referenced
In this blog post, you’ll learn more about the C# Compiler Warning – CS0164 and the related message description C# Compiler Warning Code CS0164 C# Compiler Description for the Code :CS0164 This label has not been referenced
C# Compiler Error – CS8179 predefined type ‘{0}’ is not defined or
In this blog post, you’ll learn more about the C# Compiler Error – CS8179 and the related message description C# Compiler Error Code CS8179 C# Compiler Description for the Code :CS8179 Predefined type ‘{0}’ is not defined or imported
C# Compiler Warning – CS1711 xml comment has a typeparam tag for ‘{0}
In this blog post, you’ll learn more about the C# Compiler Warning – CS1711 and the related message description C# Compiler Warning Code CS1711 C# Compiler Description for the Code :CS1711 XML comment has a typeparam tag for ‘{0}’, but there is no type parameter by that name
C# Compiler Error – CS8025 feature ‘{0}’ is not available in c# 4.
In this blog post, you’ll learn more about the C# Compiler Error – CS8025 and the related message description C# Compiler Error Code CS8025 C# Compiler Description for the Code :CS8025 Feature ‘{0}’ is not available in C# 4. Please use language version {1} or greater.
C# Compiler Error – CS1016 named attribute argument expected
In this blog post, you’ll learn more about the C# Compiler Error – CS1016 and the related message description C# Compiler Error Code CS1016 C# Compiler Description for the Code :CS1016 Named attribute argument expected
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…