Category: C#
C# Compiler Error – CS0575 only class types can contain destructors
In this blog post, you’ll learn more about the C# Compiler Error – CS0575 and the related message description C# Compiler Error Code CS0575 C# Compiler Description for the Code :CS0575 Only class types can contain destructors
C# Compiler Error – CS1969 one or more types required to compile a
In this blog post, you’ll learn more about the C# Compiler Error – CS1969 and the related message description C# Compiler Error Code CS1969 C# Compiler Description for the Code :CS1969 One or more types required to compile a dynamic expression cannot be found. Are you missing a reference?
How to format data of type double to display 2 decimal places in C# ?
You can easily format data of type double to display 2 decimal places in C# using the format specifier {0:#.##}. How to format data of type double to display 2 decimal places in C# ? Below is a sample sourcecode to demonstrate formatting data of type double to display 2 decimal places in C#
C# Compiler Error – CS1680 invalid reference alias option: ‘{0}=’ —
In this blog post, you’ll learn more about the C# Compiler Error – CS1680 and the related message description C# Compiler Error Code CS1680 C# Compiler Description for the Code :CS1680 Invalid reference alias option: ‘{0}=’ — missing filename
Fully Qualified Name in NameSpace
When accessing a class in C# , you use the fully qualifies Name of the class along with the NameSpace . The Fully Qualified Name indicates the logical hierarchy of the class . Below is the sample code that demonstrates the Fully Qualified Name namespace ConsoleApplication4 { internal class Program { private static void Main(string[] args) { System.Console.WriteLine(“This is a…
Application States in Windows Phone 8
The Windows Phone 8 supports 2 different types of Application states Transient Persistent The transient state is stored at the application level and is discarded when the application is terminated. The developers can utilize the PhoneApplicationService.State and PhoneApplicationPage.State to store the transient state data. The Persistent State is generally saved to the isolated storage and is available when the application launches.
C# Compiler Error – CS1736 default parameter value for ‘{0}’ must b
In this blog post, you’ll learn more about the C# Compiler Error – CS1736 and the related message description C# Compiler Error Code CS1736 C# Compiler Description for the Code :CS1736 Default parameter value for ‘{0}’ must be a compile-time constant
C# Compiler Error – CS1756 interop type ‘{0}’ cannot be embedded be
In this blog post, you’ll learn more about the C# Compiler Error – CS1756 and the related message description C# Compiler Error Code CS1756 C# Compiler Description for the Code :CS1756 Interop type ‘{0}’ cannot be embedded because it is missing the required ‘{1}’ attribute.
How to Connect PC to internet through Windows Phone’s device internet?
There are times when you want to connect your laptop / PC to internet via the Phone’s internet connection (GPRS/3G/4G). This may be needed especially when you are travelling a lot. You can use the internet connection of your Windows Phone 8(HTC Windows Phone 8X) to connect on your PC. How to Connect PC to internet through Windows Phone’s device internet? Launch the Settings App…
C# Compiler Error – CS0663 ‘{0}’ cannot define an overloaded {1} th
In this blog post, you’ll learn more about the C# Compiler Error – CS0663 and the related message description C# Compiler Error Code CS0663 C# Compiler Description for the Code :CS0663 ‘{0}’ cannot define an overloaded {1} that differs only on parameter modifiers ‘{2}’ and ‘{3}’
C# Compiler Error – CS0668 two indexers have different names; the i
In this blog post, you’ll learn more about the C# Compiler Error – CS0668 and the related message description C# Compiler Error Code CS0668 C# Compiler Description for the Code :CS0668 Two indexers have different names; the IndexerName attribute must be used with the same name on every indexer within a type
C# Compiler Error – CS1553 declaration is not valid; use ‘{0} opera
In this blog post, you’ll learn more about the C# Compiler Error – CS1553 and the related message description C# Compiler Error Code CS1553 C# Compiler Description for the Code :CS1553 Declaration is not valid; use ‘{0} operator (…’ instead
C# Compiler Warning – CS8824 parameter ‘{0}’ must have a non-null val
In this blog post, you’ll learn more about the C# Compiler Warning – CS8824 and the related message description C# Compiler Warning Code CS8824 C# Compiler Description for the Code :CS8824 Parameter ‘{0}’ must have a non-null value when exiting because parameter ‘{1}’ is non-null.
Pass by Value by default
By default , the Value type (Data types) are pass by value . Below is a sample sourcecode that demonstrates the pass by value .
C# Compiler Error – CS2037 an expression tree lambda may not contai
In this blog post, you’ll learn more about the C# Compiler Error – CS2037 and the related message description C# Compiler Error Code CS2037 C# Compiler Description for the Code :CS2037 An expression tree lambda may not contain a COM call with ref omitted on arguments
Can Mail be sent in Background in Windows Phone 8 using Launcher?
In one of the previous article, we explained about sending email in Windows Phone 8 using EmailComposeTask which invokes the UI for the user with the content of the email. When the user taps on the send button , the email is sent to the user. Can Mail be sent in Background in Windows Phone 8 using Launcher? Currently , the Windows Phone 8 SDK…
C# Compiler Warning – CS1710 xml comment has a duplicate typeparam ta
In this blog post, you’ll learn more about the C# Compiler Warning – CS1710 and the related message description C# Compiler Warning Code CS1710 C# Compiler Description for the Code :CS1710 XML comment has a duplicate typeparam tag for ‘{0}’
Using block for SQLConnection in C#
The using statement in C# can also be used to ensure that the resources are automatically cleaned before the using block exits. One of the criteria of the Using statement is that the items being created in the using statement must implement IDisposable interface. For example, you can use the using block to open the SQL Connection, retrieve the data. Using block for SQLConnection in…
C# Compiler Error – CS8202 public signing is not supported for netm
In this blog post, you’ll learn more about the C# Compiler Error – CS8202 and the related message description C# Compiler Error Code CS8202 C# Compiler Description for the Code :CS8202 Public signing is not supported for netmodules.
Launching the lock Screen Settings App using URI Scheme in Windows Phone 8
Below is a sample code snippet demonstrating on how to launch the lock Screen App via the URI Scheme and LaunchUriAsync method in Windows Phone using C#? Launching the lock Screen Settings App using URI Scheme in Windows Phone 8