Category: C#
C# 6.0 feature – Lambda Expression in Function Members
C# 6.0 lets the developers to use lambda expression as function member . For example , instead of the function body , you can write the lambda expression directly as shown below. C# 6.0 feature – Lambda Expression in Function Members
C# Compiler Error – CS0736 ‘{0}’ does not implement instance interf
In this blog post, you’ll learn more about the C# Compiler Error – CS0736 and the related message description C# Compiler Error Code CS0736 C# Compiler Description for the Code :CS0736 ‘{0}’ does not implement instance interface member ‘{1}’. ‘{2}’ cannot implement the interface member because it is static.
C# Compiler Warning – CS1522 empty switch block
In this blog post, you’ll learn more about the C# Compiler Warning – CS1522 and the related message description C# Compiler Warning Code CS1522 C# Compiler Description for the Code :CS1522 Empty switch block
How to Create a Guid Value in C# ?
If you want to create a new Guid value in C# which is random , you can use the Guid class to achieve it. Below is a sample code snippet demonstrating how to do it. How to Create a Guid Value in C# ?
C# Compiler Error – CS1646 keyword, identifier, or string expected
In this blog post, you’ll learn more about the C# Compiler Error – CS1646 and the related message description C# Compiler Error Code CS1646 C# Compiler Description for the Code :CS1646 Keyword, identifier, or string expected after verbatim specifier: @
C# Compiler Error – CS1569 error writing to xml documentation file:
In this blog post, you’ll learn more about the C# Compiler Error – CS1569 and the related message description C# Compiler Error Code CS1569 C# Compiler Description for the Code :CS1569 Error writing to XML documentation file: {0}
C# Compiler Error – CS8801 cannot use local variable or local funct
In this blog post, you’ll learn more about the C# Compiler Error – CS8801 and the related message description C# Compiler Error Code CS8801 C# Compiler Description for the Code :CS8801 Cannot use local variable or local function ‘{0}’ declared in a top-level statement in this context.
C# Compiler Error – CS8703 the modifier ‘{0}’ is not valid for this
In this blog post, you’ll learn more about the C# Compiler Error – CS8703 and the related message description C# Compiler Error Code CS8703 C# Compiler Description for the Code :CS8703 The modifier ‘{0}’ is not valid for this item in C# {1}. Please use language version ‘{2}’ or greater.
How to find the absolute value of a number in C# ?
Below is a sample code snippet that demonstrates how to find the absolute value of a number in C# . How to find the absolute value of a number in C# ?
C# Compiler Error – CS0177 the out parameter ‘{0}’ must be assigned
In this blog post, you’ll learn more about the C# Compiler Error – CS0177 and the related message description C# Compiler Error Code CS0177 C# Compiler Description for the Code :CS0177 The out parameter ‘{0}’ must be assigned to before control leaves the current method
How to Prevent the Lock Screen to automatically lock from the Windows Phone 8 App?
There are times when the automatic lock of the Screen is enabled by the user in the Settings App of the Windows Phone 8. When your App is running on the device, sometimes you may not want to lock the device automatically for various reasons . How to Prevent the Lock Screen to automatically lock from the Windows Phone 8 App? Below is a sample…
How to get the Machine Name from a .NET Application using C# ?
You can use the MachineName property defined in the System.Environment class in order to get the Machine Name from your .NET Application. How to get the Machine Name from a .NET Application using C# ? Here’s a code sample demonstrating how to do it. This should display the machine name. The output of the program would be The Machine Name is Abundantcode-LT