Category: C#

Json.NET & Oxygene – Installing Json.NET for Remobjects Oxygene projects in Visual Studio 2015

Are you a developer using RemObjects Oxygene.NET and want to use Json.NET in your project . Check this series of articles to learn how to integrate Json.NET in your Oxygene project. Json.NET is one of the popular high performance and open source JSON framework for the .NET Developers. It lets the developers to serialize and deserialize .NET objects and is considered to be one of…

C# Compiler Error – CS8912 inheriting from a record with a sealed ‘

In this blog post, you’ll learn more about the C# Compiler Error – CS8912 and the related message description C# Compiler Error Code CS8912 C# Compiler Description for the Code :CS8912 Inheriting from a record with a sealed ‘Object.ToString’ is not supported in C# {0}. Please use language version ‘{1}’ or greater.

How to Compute area of a circle in C# ?

Below is a sample sourcecode that demonstrates the computation of the area of a circle in c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { double radiusofcircle; double areaOfCircle; double pi = 3.1416; radiusofcircle = 25; areaOfCircle = radiusofcircle * radiusofcircle * pi; Console.WriteLine(“Area is ” + areaOfCircle); Console.Read(); } } }

How to find if 2 Objects are Equal in C#?

There are times when you need to determine if 2 objects are equal or not. In these cases, you could either override the Equals method or implement IEquatable interface. How to find if 2 Objects are Equal in C#? Below is a sample code snippet demonstrating the usage of Object.Equals method to find the equality of 2 objects.

C# Compiler Error – CS1935 could not find an implementation of the

In this blog post, you’ll learn more about the C# Compiler Error – CS1935 and the related message description C# Compiler Error Code CS1935 C# Compiler Description for the Code :CS1935 Could not find an implementation of the query pattern for source type ‘{0}’. ‘{1}’ not found. Are you missing required assembly references or a using directive for ‘System.Linq’?

How to fill an array with default values in C# ?

To fill an array with the default values in C# , you can use the Enumerable.Repeat method to do it. How to fill an array with default values in C# ? Below is a sample code illustrating the usage of the Enumerable.Repeat method to fill an array with default values.