C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Tags
No tag found
Content Filter
Articles
Videos
Blogs
Resources
News
Forums
Interviews
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Naresh Beniwal(15)
Sreenath Kappoor(5)
Sandhiya Priya(3)
Sriganapathi Sekar(3)
Ishika Tiwari(3)
Abhishek Yadav(3)
Vipin Mittal(2)
Vijay Kumari(2)
Jaimin Shethiya(2)
Jitendra Mesavaniya(2)
George (2)
Uday Dodiya(2)
Amit Mohanty(2)
Pushpendra Shukla(2)
Kirtesh Shah(2)
Vijayakumar S(2)
Surya S(2)
Ananya Desai(1)
Ajay Narkhedkar(1)
Rohit Gupta(1)
Akshay Amin(1)
Mariem Moalla(1)
Aarav Patel(1)
Kapil Singh Kumawat(1)
Devesh Omar(1)
Sigar Dave(1)
Sanjay Kumar(1)
Vipul Kumar(1)
Jay Krishna Reddy (1)
Vijay Yadav(1)
Akshima Aggarwal(1)
Darshan Adakane(1)
Pratik Somaiya(1)
Rohini Parade(1)
Ziggy Rafiq(1)
Ajay Kumar(1)
Jignesh Kumar(1)
Mukesh Nailwal(1)
Keyur (1)
Dhanush K(1)
Sachin Mishra(1)
Yogeshkumar Hadiya(1)
Harshit Pandey(1)
Navin Prakash(1)
Venkatasubbarao Polisetty(1)
Arvind Yadav(1)
Mahesh Chand(1)
Rajat Jaiswal(1)
Aashina Arora(1)
Jay Pankhaniya(1)
Chaman Gautam(1)
Onkar Sharma(1)
Mahesh Vishwakarma(1)
Priyanka K S(1)
Rikam Palkar(1)
Sean Franklin(1)
Nitin (1)
Habibul Rehman(1)
Vijay K(1)
Amit Naik(1)
Gaurav Kumar(1)
Hemant Jindal(1)
Dipa Mehta(1)
Resources
No resource found
How to Prevent SQL Injection Attacks in Modern Web Applications
Mar 17, 2026.
Protect your web applications from SQL Injection! Learn effective techniques like prepared statements, input validation, and ORM frameworks to secure your database.
Difference Between SELECT [Section] FROM sectionmaster and SELECT Section FROM sectionmaster in SQL
Feb 27, 2026.
Understand the subtle difference between `SELECT [Section]` and `SELECT Section` in SQL. Learn when to use square brackets for escaping identifiers and avoid syntax errors. Master SQL queries!
Control Statements in Programming
Feb 11, 2026.
Master control statements in programming! Learn about decision making (if/else, switch), loops (for, while), and jump statements (break, continue) with clear examples.
Conditional Statements in C#
Jan 11, 2026.
Master C# conditional statements! Learn to use if, if-else, switch, and the ternary operator for decision-making in your code. Includes practical examples and tips.
Python - Importance of Function and Operations
Nov 04, 2025.
Explore Python functions: syntax, parameters, variable arguments, and return statements. Learn to build practical tools like temperature converters and password checkers.
Automating Bank Statement Analysis with LLMs & RAG Techniques
Nov 04, 2025.
Explore how this project automates bank statement processing, uses OCR + layout models + embedding + vector DB + LLM + RAG to convert PDF statements into structured data and enable natural-language querying and financial insights.
SQL Injection — what it is, how it works, and how to stop it (with examples)
Nov 04, 2025.
SQL Injection (SQLi) explained: Understand how attackers exploit vulnerable SQL queries to steal or modify data. Learn practical defenses with code examples and best practices.
Chapter 4: Control Flow: Decisions and Loops in C++
Oct 23, 2025.
Master C++ control flow with this guide to decision-making and loops. Learn to use if, else, switch statements for conditional execution. Explore while, for, and do-while loops for code repetition. Discover how break and continue keywords provide fine-grained control, enabling you to create dynamic and efficient C++ programs.
All you need to know about switch expression and Modern Pattern Matching
Sep 22, 2025.
Explore the evolution of the C# switch statement from its traditional constant-based form to the powerful pattern matching capabilities of modern C#. This article covers type patterns, relational patterns, positional patterns, and switch expressions introduced in C# 7.0 and later. Learn how to leverage these features for cleaner, more expressive code and improved conditional logic.
What are truthy and falsy values in JavaScript?
Aug 27, 2025.
Learn the difference between truthy and falsy values in JavaScript. Understand how Boolean conversion, type coercion, and conditional statements work with examples to write cleaner, bug-free code.
To Delete a Row from Table in SQL Server
Aug 06, 2025.
Learn how to delete a row from a table in SQL Server using the DELETE statement. This guide explains the syntax, provides examples of deleting rows by specific conditions, and highlights the difference between DELETE and TRUNCATE. Whether you are removing a single record or multiple rows, this article covers the essential steps and best practices for safe data deletion.
Exploring Snowflake SQL New Capabilities Using SELECT Statement
Jan 29, 2025.
Learn how to leverage new features for efficient data querying, optimization, and advanced analytics in Snowflake’s cloud data platform. Perfect for data professionals.
Check Input Character is a Vowel or Consonant in Java With code
Jan 07, 2025.
Learn how to identify vowels and consonants in Java using if-else and switch statements. This article explains character validation and control flow and provides example programs for clarity and practice.
Checking Leap Year in Java with Code
Jan 03, 2025.
This article explains how to determine leap years in Java using conditional statements, ternary operators, functions, and Java's built-in `Year` class, with code examples and clear explanations for each method.
Explaining CTE in SQL Server
Nov 27, 2024.
Common Table Expressions (CTEs) in SQL simplify complex queries by creating temporary result sets. They can be used in SELECT, INSERT, UPDATE, and DELETE statements, supporting scenarios like hierarchical data, aggregation, and filtering.
Difference Between Break and Continue in JavaScript
Oct 24, 2024.
In JavaScript, both break and continue are control flow statements used in loops. The break statement stops the loop entirely when a condition is met, while continue skips the current iteration and moves to the next.
Explain Switch Case Uses in C#
Sep 11, 2024.
In C#, the switch statement serves as a control structure that enables the execution of distinct code blocks based on the value of a variable. It is frequently utilized when there is a need to compare a variable with multiple constant values and to carry out various actions according to the outcome.
Difference between lock(this) and lock(privateObj) in C#
Aug 22, 2024.
In multi-threaded C# programming, the lock statement ensures that critical code sections are accessed by only one thread at a time. While lock(this) locks on the current instance, it can expose your object to external locking, leading to potential deadlocks.
Transitioning from Switch Statements To Switch Expressions in C#
Aug 09, 2024.
Explore how to modernize your C# code by transitioning from traditional switch statements to the more concise and powerful switch expressions introduced in C# 8.0.
UNION vs UNION ALL in SQL Server
Jul 24, 2024.
The SQL UNION operator combines the results of two or more SELECT statements, removing duplicate rows. In contrast, UNION ALL combines results while retaining all duplicates. UNION may impact performance due to the overhead of duplicate removal, whereas UNION ALL is generally faster and more resource-efficient.
Difference Between DELETE and TRUNCATE in SQL Server
Jul 23, 2024.
In SQL Server, DELETE and TRUNCATE are used to remove data from tables, each with distinct characteristics. DELETE is a DML command that logs each row deletion, supports triggers, and respects foreign key constraints, making it slower but more flexible.
SQL Merge Statement: Syntax, Usage, and Example
Jun 25, 2024.
The SQL MERGE statement combines INSERT, DELETE, and UPDATE operations into a single query, synchronizing data between source and target tables based on key fields. This powerful command efficiently handles data modifications, ideal for maintaining Slowly Changing Dimensions (SCD) in data warehouses.
Understanding throw vs throw ex vs throw new Exception() in C#
Jun 22, 2024.
Explore the nuances of exception handling in C# .NET with a deep dive into 'throw', 'throw ex', and 'throw new Exception()'. Learn when to use each technique, their impact on stack traces and exception propagation, and best practices for effective error handling in your applications.
IIF in Microsoft SQL Server
Jun 21, 2024.
IIF function in SQL, also known as "Immediate If," provides a concise way to perform conditional evaluations within queries. It allows SQL developers to return different values based on whether a specified condition is evaluated as true or false.
Garbage Collection (3), C# using statement --- Language support for Dispose
Jun 17, 2024.
This article will discuss the C# using a statement. Garbage collection (GC) in computer science reclaims unused memory automatically. Invented by John McCarthy in 1959, GC simplifies memory management. This series explores GC in .NET, focusing on managed, unmanaged code and the `using` statement for resource management.
Improved Performance by STORED PROCEDURES
Jun 08, 2024.
Stored procedures in relational database management systems (RDBMS) encapsulate frequently used SQL statements for efficient execution. They offer dynamic SQL execution, return values via OUT keywords, and include procedural logic like IF-ELSE and loops.
Break in C#
May 24, 2024.
The "break" statement in C# is a control flow statement that terminates the nearest enclosing loop or switch statement. It is commonly used to exit a loop prematurely when a specific condition is met, improving code readability and efficiency.
Continue in C#
May 23, 2024.
In C#, the continue statement is used within loops (for, while, do-while, and foreach) to skip the current iteration and proceed to the next one. It's useful for bypassing specific conditions within a loop, enhancing control flow and loop efficiency.
If Statement in C#
May 16, 2024.
Master the fundamentals of C# with if statements. Learn to control program flow based on conditions, enabling dynamic decision-making in your code efficiently."
Understand Azure 900 Microsoft Privacy, Terms, DPA
May 15, 2024.
This article is part of the Azure 900 course which describes what type of documents Microsoft shares with its users or customers. These documents deal with privacy, using online services, and handling data.
Switch Statement in C#
May 13, 2024.
Learn how to use the switch statement in C# for efficient control flow. Explore its syntax, including case labels, break statements, and default handling. Discover how to leverage switch with enums and expressions for concise and structured decision-making in your code.
MERGE Stored Procedures in SQL Server
Apr 15, 2024.
In this article, I present how to use the MERGE statement in a stored procedure to merge a single record and how to use it to merge a list of records by using Table-Valued parameters in SQL Server.
Important PySpark Import Statements
Mar 21, 2024.
PySpark, the Python API for Apache Spark, has gained immense popularity for its ability to handle big data processing tasks efficiently. In this article, we'll explore the top five import statements in PySpark and delve into their significance in building robust data processing pipelines.
What is Use of ‘Using’ Statement in .NET?
Mar 15, 2024.
In this article, we will cover What is the use of the ‘Using’ statement in .NET. The 'using' statement in .NET ensures efficient resource management, prevents memory leaks, and promotes cleaner, more reliable code.
The Dangling If-Else Problem: A Common Pitfall in Programming
Mar 08, 2024.
Explore the often-overlooked issue of the "dangling if-else problem" in programming through our insightful article. We delve into the ambiguity that arises when multiple if-else statements are nested without clear indentation, leading to unexpected behavior and logical errors.
Code readability is enhanced with C# 10 top-level statements
Jan 30, 2024.
Ziggy Rafiq discusses tackling challenges in software component specification standards through the implementation of solutions such as adapters and bridges for standard mediation, abstraction and encapsulation for complexity reduction, and version control and configuration management for change tracking. These strategies promote interoperability, simplify complexity, and uphold consistency and compatibility across components and systems.
If-Else vs Switch Statement in C#
Jan 16, 2024.
Navigate the decision-making landscape in C# with clarity. Delve into the distinctions between if-else and switch statements, understanding their pros, cons, and optimal use cases for efficient code.
Simplify Your Code with Switch Expressions: Patterns and Examples
Nov 06, 2023.
In C#8 switch statement enhanced with powerful feature that can simplyfy your code and make it more readable and maintainable. In this article We will explore into C# 8 switch expression and how to use in our code and make it more readable and how to use in different way to write conditional logic and how to leverage pattern matching functionality using switch.
How C# Continue and Break Statements are Different?
Nov 02, 2023.
Let's know the difference between continue and break statements.This article provides an explanation of the continue and break statements in C# effectively highlights their essential functionalities within loops. Both of these control flow statements play crucial roles in managing the behavior of loops based on specific conditions.
Exploring Top Level Statements - Programs Without Main Methods in C#
Oct 09, 2023.
Top-level statements are a new feature introduced in C# 9 that allows you to write code directly at the root of a file, without having to wrap it in a class or a method.
Control Structures in R Programming
Sep 25, 2023.
In this article, we will explore the various types of control structures in R, with their syntax, and present example programs with output to illustrate their usage.
Conditional INSERT, UPDATE, DELETE with MERGE Query
Sep 04, 2023.
The MERGE statement is a versatile SQL command used for conditional INSERT, UPDATE, or DELETE operations, streamlining database management tasks efficiently in a single query.
How To Use LIMIT in MySQL?
Jun 20, 2023.
The LIMIT clause is used to limit the number of rows returned by a SELECT statement in MySQL. It is typically used in combination with the ORDER BY clause to specify the order in which the rows should be returned. The syntax for the LIMIT clause is as follows.
What is Default Keyword in Java
May 11, 2023.
In this article, you will learn about What is Default Keyword in Java
SQL Where Statement
May 10, 2023.
In this article we will discuss about SQL Where statement
Conditional Statements in Rust: match Statement
May 04, 2023.
In this article, we learn about Conditional Statements in Rust: match Statement
Conditional Statements in Rust: if Statement
May 03, 2023.
In this article we learn about if statement in rust language.
Understanding Conditional Statements in C#
Apr 27, 2023.
In this article we are going to cover Conditional Statements of C#. We are going to cover all the statements in depth.
How to use loops In Rust?
Apr 26, 2023.
learning for loop, while loop and loop, and also learn break and continue statements
How to Use Aggregate Functions in SQL Server?
Apr 20, 2023.
Implementing C# 12's Top-level Statements for Faster, More Lightweight Code
Apr 18, 2023.
Implementing C# 12's Top-level Statements for Faster, More Lightweight Code
C# 12's Switch Expressions: A More Powerful Alternative to Traditional Switch Statements
Apr 17, 2023.
C# 12's Switch Expressions: A More Powerful Alternative to Traditional Switch Statements
Exception Handling (7), C# Exception Handling Statements
Mar 14, 2023.
This article will discuss Exception Handling Statements.
How To Use SQL MERGE Statement
Jan 10, 2023.
In this article, you will learn how to use the SQL MERGE Statement.
How To Execute SQL Statements From Command Prompt
Jul 30, 2022.
Here we discuss SQL and how to execute SQL statements in a command prompt.
Flutter Common Control Flows And Statements 😎
Jul 27, 2022.
In this article, you will learn about Flutter Common Control Flows and Statements.
Conditional Statement With C#
May 16, 2022.
conditional statements are used in a C# or any Object-oriented programming language for check the condition for particular output. In a C# are used four types of conditional statements, if(), else, else if(), switch().
Understand Switch Statement In Power Automate
Apr 12, 2022.
Generally to handle multiple conditions then like in javascript and C# .net switch will be used, in the same way in Power automate also we can use Switch action. In this article we can see how it can be used to decide whether a person can take vaccination or not.
Create, Insert, Update, Delete, Select, Truncate, Drop Statement In Oracle PL-SQL
Feb 28, 2022.
In this article, you will learn about Create ,Insert, update, delete , select table , truncate table , drop table statement in Oracle Database / PL-SQL.
Top-level Statements in C# 10
Feb 24, 2022.
Learn what top level statements are in C# and why, what, and how top level statements work.
How To Insert A Default Value In SQL Statement
Jan 03, 2022.
This is SQL tips and interesting questions in developers mind how to insert default value in SQL statement when there is no other value
Working With CSV In Python
Dec 16, 2021.
In this article, you will learn about CSV In Python.
SQL Server Merge Statement
Jul 16, 2021.
In this article, you will learn about the SQL SERVER MERGE statement.
Introduction To Conditional Statement In C#
Jul 10, 2021.
This conditional statement is for the beginner where they can learn the basic idea about the conditional statement of the C# Programming languge. Here, this will contains the solution for the hackerrank day 3 Intro to Conditional Statement.
Python Unconditional Statements And String Operations✍️
Jul 01, 2021.
In this article, you will learn about Python Unconditional Statements and String Operations??.
Python - Branching Statements ✍️
Jun 11, 2021.
In this article, you will learn about Python - Branching Statements.
Understanding With ng-Switch Statements In Angular
May 28, 2021.
In this article, you will learn about ng-Switch Statements in angular, how to use ng-Switch Statements. and its use.
Difference Between Delete, Truncate And Drop Statements In SQL Server
May 04, 2021.
This tutorial will show you the difference between delete, truncate and drop statements in SQL Server.
Excel To Insert Statement
Mar 26, 2021.
In this article , you will learn how to make application which collect data from excel sheets and convert it into sql insert statement
Merge Statement In SQL
Feb 26, 2021.
Merge Statement is a very popular clause in SQL. It handles Insert, Update and Delete in a single query no need to write different logics for each.
Use Of If Statement In R
Dec 03, 2020.
Explore the versatile use of if statements in R for decision-making and control flow. Learn how to implement conditional logic, perform data filtering, and drive program behavior based on logical tests. Enhance your understanding of programming logic and data analysis with this fundamental concept in R.
Learn About Loops In R
Dec 03, 2020.
In this article, we will learn how to repeat the execution of certain parts of your R code using loops.
C# 9.0 - Introduction To Top-Level Statements
Oct 12, 2020.
In this article, you will learn about C# 9.0 - introduction to Top-Level Statements.
Jump Statements Simplified With Flow Chart
Jul 28, 2020.
Our objective today, Is to understand the behaviour of jump statements in C#. Jump statements are used to transfer the control of execution from one point to another point.
Using Declarations In C# 8
Jun 22, 2020.
In this article I will explain the syntax feature "using declarations" introduced in C# 8 and how this feature can reduce code noise.
C# Using Dropdown Menu To Change Background Color With Switch Statement
Jun 18, 2020.
In this article, you will learn about using a dropdown menu in C# to change the background color with a switch statement.
Best Code Editor Keyboard Shortcuts In Visual Studio For More Productivity
Jun 12, 2020.
In this article, we will learn a few VisualStudio code editor keyboard shortcut keys for better developer productivity. For professional developers, it's critical to know how to do simple code editing task with the keyboard to make their coding efficient and robust.
Control Statements In PHP
May 20, 2020.
In this article you will learn about control statements in PHP.
Replace Conditional Statements (IF/ELSE Or SWITCH) With Factory
May 05, 2020.
Learn how to replace long IF/ELSE or SWITCH statements with polymorphism using the RIP design pattern. This article covers implementing the Simple Factory pattern and lazy loading, enhancing code maintainability and readability in Visual Studio 2019 with .NET Framework.
Conditional Statements In JavaScript
Apr 03, 2020.
In this article, you will learn about Conditional Statements in JavaScript.
Looping Statements in JavaScript
Mar 31, 2020.
This article explains some looping Statements in JavaScript and examples.
Sealed Classes With When Statements Kotlin
Mar 19, 2020.
In this article, you will learn about sealedcClasses with when statements Kotlin.
While Loop in Python
Mar 15, 2020.
In this article, I will explain the while loop in Python
Conditional Statements In Python
Mar 05, 2020.
In this article, I will explain conditional statements in python
Advanced Features In C#
Feb 13, 2020.
In this article, you will learn about advanced features in C#.
SQL Exists Statement
Jan 20, 2020.
In this article you will learn about the SQL Exists statement
SQL Comments Statement
Jan 17, 2020.
In this article you will learn how to make SQL Comments statement in SQL
SQL SELECT HAVING Statement
Jan 17, 2020.
In this article you will learn about the SQL HAVING statement.
Control Flow With Decisions And Loops In Python
Jan 17, 2020.
In this article we will learn about Condition, Loop and Loop Control Statement supported in Python
SQL Index Statement
Jan 14, 2020.
In this article, you will learn how to create an Index statement in SQL.
SQL UNIQUE Constraint
Jan 07, 2020.
In this article, you will learn how to Unique Constraint in SQL.
SQL SELECT ORDER BY Statement
Jan 07, 2020.
In this article, we will discuss SELECT ORDER by a statement
SQL View Statement Tutorial
Dec 21, 2019.
In this article, you will learn how to use a view statement in SQL.
SQL Cast And Convert Statement
Dec 11, 2019.
In this article, you will learn how to use Cast and Convert statement in SQL.
Python Flow Control Statements
Dec 05, 2019.
Until now, we've learned the basics of Python in my previous articles. Now, we will move to Flow Control Statements in Python.
SQL DATE TIME Statement
Nov 20, 2019.
In this article you will learn how to use a SQL DATE TIME statement
SQL Aggregate Statement
Nov 20, 2019.
In this article, you will learn how to use an Aggregate statement in SQL.
SQL BETWEEN Statement
Nov 19, 2019.
In this article, you will learn how to use a SQL Between statement in SQL
SQL LIKE Statement
Oct 20, 2019.
In this article, you will learn how to use a SQL LIKE statement in SQL
A Complete SQL Case Statement Tutorial
Oct 17, 2019.
In this detailed tutorial, learn how to use the CASE statement in SQL.