Category: C#

C# Compiler Error – CS0650 bad array declarator: to declare a manag

In this blog post, you’ll learn more about the C# Compiler Error – CS0650 and the related message description C# Compiler Error Code CS0650 C# Compiler Description for the Code :CS0650 Bad array declarator: To declare a managed array the rank specifier precedes the variable’s identifier. To declare a fixed size buffer field, use the fixed keyword before the field type.

Which Events to use to Save the Transient State in Windows Phone 8?

It is necessary for the developers to save the transient and the persistent state of the app when the application goes to the deactivated status. Which Events to use to Save the Transient State in Windows Phone 8? The PhoneApplicationPage’s OnNavigatedFrom and OnNavigatedTo methods can be used to save the transient state in Windows Phone 8.

How to Sort Array Elements in Ascending Order in C#?

The Array class includes static method called Sort which can be used to sort the array in ascending order in C#. Array.Sort(<arry>); How to Sort Array Elements in Ascending Order in C#? Below is a sample code snippet demonstrating sorting of array elements in ascending order in C#.

C# Compiler Error – CS8347 cannot use a result of ‘{0}’ in this con

In this blog post, you’ll learn more about the C# Compiler Error – CS8347 and the related message description C# Compiler Error Code CS8347 C# Compiler Description for the Code :CS8347 Cannot use a result of ‘{0}’ in this context because it may expose variables referenced by parameter ‘{1}’ outside of their declaration scope

C# Compiler Warning – CS0728 possibly incorrect assignment to local ‘

In this blog post, you’ll learn more about the C# Compiler Warning – CS0728 and the related message description C# Compiler Warning Code CS0728 C# Compiler Description for the Code :CS0728 Possibly incorrect assignment to local ‘{0}’ which is the argument to a using or lock statement. The Dispose call or unlocking will happen on the original value of the local.

C# Compiler Error – CS0425 the constraints for type parameter ‘{0}’

In this blog post, you’ll learn more about the C# Compiler Error – CS0425 and the related message description C# Compiler Error Code CS0425 C# Compiler Description for the Code :CS0425 The constraints for type parameter ‘{0}’ of method ‘{1}’ must match the constraints for type parameter ‘{2}’ of interface method ‘{3}’. Consider using an explicit interface implementation instead.