
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 2595 Articles for Csharp

4K+ Views
Simple Interest is the interest calculated only on the initial principal amount taken. This is not like compound interest where interest is compounded, i.e., previous interest is included in the current time period. This interest is simple and grows linearly over time. In this article, we will discuss how to calculate simple interest using C#. The formula to calculate Simple Interest is: Simple Interest (SI) = P × R × T / 100 Where: p is the principal amount r is the interest rate t is ... Read More

4K+ Views
What is a Circle? A circle is a round two-dimensional shape in which all the points on the surface of the circle are equal from a point known as the center. The distance between the center and any point on the boundary of a circle is known as the radius. Area of a Circle The area of a circle is the total area present inside the boundary of a circle. In this article, we are going to discuss different approaches on how we can calculate the area of a circle using C#. The formula for the Area of the ... Read More

4K+ Views
Compound interest is interest where the interest is calculated by adding the interest that has already been calculated in a previous time period. In this article, we are going to discuss how we can calculate compound interest using C#. What is Compound Interest? Compound Interest is the interest that calculates interest on the initial principal and also includes the interest of the previous period. In compound interest, the previous interest is included in the current interest, causing the interest to grow in an exponential manner. Example Input: principal = 20, 000, rate = ... Read More

2K+ Views
Delegates and interfaces are both powerful constructs in C# that allow for flexible and extensible code. While they serve different purposes, they can sometimes be used to achieve similar ends, leading to confusion about when to use one over the other. This article will elucidate the differences and similarities between delegates and interfaces, and provide guidelines for their use. Understanding Delegates in C# A delegate in C# is a type that defines a method signature, and can hold a reference to a method. When a delegate is invoked, it calls the method it references. This provides a way to pass ... Read More

541 Views
Default interface methods are a game-changing feature that allow developers to add new methods to an interface without breaking existing implementations. This article will explain default interface methods in C#, showing you how to use them effectively in your own code. Traditional Interface Methods in C# Traditionally, interfaces in C# could only contain declarations of methods, properties, events, or indexers, but not their implementations. Any class or struct that implemented the interface had to provide the implementation for each member of the interface. Introduction to Default Interface Methods Default interface methods were introduced to address the limitation of traditional interfaces. ... Read More

949 Views
Language Integrated Query (LINQ) is a powerful tool in C# for data manipulation, allowing for efficient and expressive data access and manipulation. One of the operations you can perform with LINQ is the cross join operation, which is common in database queries. This article will guide you through implementing a cross join in LINQ. Understanding Cross Join Cross join, also known as Cartesian product, is a type of join operation that matches each row of the first table with every row of the second table. If the first table has n rows and the second table has m rows, the ... Read More

281 Views
In C#, manipulating collections is a frequent operation, with indexing being a crucial part of this process. Traditionally, indexing in C# starts from the beginning of a collection, which is very intuitive and straightforward. This article will guide you through the process of creating an index from a specified position at the start of a collection in C#. Understanding Indexing in C# In C#, you can access elements in an array or a collection using an index. The indexing process starts from the beginning of the collection, with the first element at index 0. Each subsequent element has an index ... Read More

262 Views
Indexing is a crucial part of any programming language, and C# is no exception. In C# 8.0, a new feature was introduced to create an index from the end of a collection at a specified position. This feature adds a new dimension to array and list manipulation in C#. This article will guide you through the process of creating an index from the end of a collection at a specified index position in C#. Understanding Indexing in C# Before proceeding, let's understand what indexing means in C#. In C#, you can access elements in an array or a collection using ... Read More

312 Views
Language Integrated Query (LINQ) is a powerful feature in C# that allows for efficient data manipulation. One common task when working with collections is determining the number of elements in a sequence. This article will guide you through using LINQ to count the number of elements in a sequence, a fundamental operation for data analysis and manipulation. Understanding LINQ and Sequences LINQ is a set of technologies based on the integration of query capabilities directly into the C# language. With LINQ, you can query data from a variety of sources, including arrays, enumerable classes, XML documents, relational databases, and third-party ... Read More

261 Views
Enumerations (enums) are a powerful feature in C# that allows you to define a type with a set of named constants. Often, you may need to convert an enum value to a string for display purposes or to process it further. This article will guide you through the process of converting an enumerated type to a string according to a specified format in C#. Understanding Enumerated Types in C# Before proceeding with the conversion process, let's first understand what enumerated types are. An enumerated type, or enum, is a distinct type that consists of a set of named constants. Here's ... Read More