Category: C#
How to Show Status Bar in Windows Phone 8.1 Windows Runtime Apps ?
Below is a sample code snippet that demonstrates how to show the Status Bar in Windows Phone 8.1 Windows Runtime Apps using C# incase if it is hidden. How to Show Status Bar in Windows Phone 8.1 Windows Runtime Apps ?
C# Compiler Error – CS0257 an __arglist parameter must be the last
In this blog post, you’ll learn more about the C# Compiler Error – CS0257 and the related message description C# Compiler Error Code CS0257 C# Compiler Description for the Code :CS0257 An __arglist parameter must be the last parameter in a formal parameter list
How to Rethrow an Exception in C# ?
There are times when you want to handle the exception and then pass it to the higher level . Below is a sample code snippet demonstrating how to Rethrow an exception in C# . How to Rethrow an Exception in C# ?
Alternate Way of getting the Unique DeviceId in Windows Phone 8
The Windows Phone 8 SDK provides the PublisherHostId defined in the HostInformation class which can be used to get the Unique DeviceId in Windows Phone which is specific to the publisher. Alternate Way of getting the Unique DeviceId in Windows Phone 8 Below is a sample code snippet demonstrating how to get the Unique DeviceId in Windows Phone 8 using PublicherHostId. Note that the access…
C# Compiler Warning – CS0184 the given expression is never of the pro
In this blog post, you’ll learn more about the C# Compiler Warning – CS0184 and the related message description C# Compiler Warning Code CS0184 C# Compiler Description for the Code :CS0184 The given expression is never of the provided (‘{0}’) type
C# Compiler Error – CS0715 ‘{0}’: static classes cannot contain use
In this blog post, you’ll learn more about the C# Compiler Error – CS0715 and the related message description C# Compiler Error Code CS0715 C# Compiler Description for the Code :CS0715 ‘{0}’: static classes cannot contain user-defined operators
C# Compiler Warning – CS8655 the switch expression does not handle so
In this blog post, you’ll learn more about the C# Compiler Warning – CS8655 and the related message description C# Compiler Warning Code CS8655 C# Compiler Description for the Code :CS8655 The switch expression does not handle some null inputs (it is not exhaustive). For example, the pattern ‘{0}’ is not covered.
C# Compiler Error – CS0430 the extern alias ‘{0}’ was not specified
In this blog post, you’ll learn more about the C# Compiler Error – CS0430 and the related message description C# Compiler Error Code CS0430 C# Compiler Description for the Code :CS0430 The extern alias ‘{0}’ was not specified in a /reference option
C# Compiler Error – CS0648 ‘{0}’ is a type not supported by the lan
In this blog post, you’ll learn more about the C# Compiler Error – CS0648 and the related message description C# Compiler Error Code CS0648 C# Compiler Description for the Code :CS0648 ‘{0}’ is a type not supported by the language
C# Compiler Error – CS0311 the type ‘{3}’ cannot be used as type pa
In this blog post, you’ll learn more about the C# Compiler Error – CS0311 and the related message description C# Compiler Error Code CS0311 C# Compiler Description for the Code :CS0311 The type ‘{3}’ cannot be used as type parameter ‘{2}’ in the generic type or method ‘{0}’. There is no implicit reference conversion from ‘{3}’ to ‘{1}’.
C# Compiler Error – CS8906 record equality contract property ‘{0}’
In this blog post, you’ll learn more about the C# Compiler Error – CS8906 and the related message description C# Compiler Error Code CS8906 C# Compiler Description for the Code :CS8906 Record equality contract property ‘{0}’ must have a get accessor.
C# Compiler Error – CS0163 control cannot fall through from one cas
In this blog post, you’ll learn more about the C# Compiler Error – CS0163 and the related message description C# Compiler Error Code CS0163 C# Compiler Description for the Code :CS0163 Control cannot fall through from one case label (‘{0}’) to another
C# Compiler Warning – CS7082 the callerfilepathattribute applied to p
In this blog post, you’ll learn more about the C# Compiler Warning – CS7082 and the related message description C# Compiler Warning Code CS7082 C# Compiler Description for the Code :CS7082 The CallerFilePathAttribute applied to parameter ‘{0}’ will have no effect. It is overridden by the CallerLineNumberAttribute.
C# Compiler Error – CS8167 cannot return by reference a member of p
In this blog post, you’ll learn more about the C# Compiler Error – CS8167 and the related message description C# Compiler Error Code CS8167 C# Compiler Description for the Code :CS8167 Cannot return by reference a member of parameter ‘{0}’ because it is not a ref or out parameter
C# Compiler Error – CS8809 a return type can only have one ‘{0}’ mo
In this blog post, you’ll learn more about the C# Compiler Error – CS8809 and the related message description C# Compiler Error Code CS8809 C# Compiler Description for the Code :CS8809 A return type can only have one ‘{0}’ modifier.
C# Compiler Error – CS0844 cannot use local variable ‘{0}’ before i
In this blog post, you’ll learn more about the C# Compiler Error – CS0844 and the related message description C# Compiler Error Code CS0844 C# Compiler Description for the Code :CS0844 Cannot use local variable ‘{0}’ before it is declared. The declaration of the local variable hides the field ‘{1}’.
C# Compiler Error – CS0144 cannot create an instance of the abstrac
In this blog post, you’ll learn more about the C# Compiler Error – CS0144 and the related message description C# Compiler Error Code CS0144 C# Compiler Description for the Code :CS0144 Cannot create an instance of the abstract type or interface ‘{0}’
C# Compiler Error – CS1729 ‘{0}’ does not contain a constructor tha
In this blog post, you’ll learn more about the C# Compiler Error – CS1729 and the related message description C# Compiler Error Code CS1729 C# Compiler Description for the Code :CS1729 ‘{0}’ does not contain a constructor that takes {1} arguments
C# Compiler Error – CS8903 ‘init’ accessors cannot be marked ‘reado
In this blog post, you’ll learn more about the C# Compiler Error – CS8903 and the related message description C# Compiler Error Code CS8903 C# Compiler Description for the Code :CS8903 ‘init’ accessors cannot be marked ‘readonly’. Mark ‘{0}’ readonly instead.
C# Compiler Error – CS1970 do not use ‘system.runtime.compilerservi
In this blog post, you’ll learn more about the C# Compiler Error – CS1970 and the related message description C# Compiler Error Code CS1970 C# Compiler Description for the Code :CS1970 Do not use ‘System.Runtime.CompilerServices.DynamicAttribute’. Use the ‘dynamic’ keyword instead.