Skip to content
Shekh Ali's Blog
  • Home
  • C#
    • C# Tutorial
    • Design patterns
  • SQL
  • Programs
    • C# Programs frequently asked in interviews
  • Web API
  • Interview Questions
    • C# Interview Questions And Answers
    • JavaScript interview Q&A
  • About

Home - C# nullable types

C# nullable types

C# Nullable types: How do you work with nullable types in C#?

December 5, 2022December 4, 2022

As you know, a value type variable cannot be assigned a null value. For example, if you try to assign a null value to the value type   int i = null  it will give you a compile-time error.
In this post, you will learn about the C# Nullable Types with the help of multiple examples.

CSharp nullable types

Read more >>

Categories C# Tutorial Leave a comment

Recent Posts (C#)

  • Top 5 Difference between Call by Value and Call by Reference

  • C# Monitor class in multithreading (with examples)

  • Understanding the Chain of Responsibility Design Pattern in C#

  • Understanding Class vs Struct vs Record in C# with examples

  • Like operator in SQL

  • Generating Prime Numbers with Code Examples in C#, C, C++, Java, PHP, and Python

  • C# Program to Check if a Given Number is Even or Odd

  • Difference Between if-else and switch: A Side-by-Side Comparison of If-Else and Switch Case

  • Convert a 2D array into a 1D array using C#, Python, Java, and C programs with code examples.

  • Sealed Class in C# with examples

  • Mastering Hybrid Inheritance in C# (with examples)

  • Converting Celsius to Fahrenheit in C#: A Comprehensive Guide

  • C# Partial Class And Partial Methods With Examples

  • C# String VS StringBuilder | Top 5 Differences between string and StringBuilder

  • Value Type and Reference Type in C#

Recent Posts (SQL)

  • CTE in SQL Server: Learn Common Table Expressions with Examples

    September 14, 2023
  • How to Create Foreign Key in SQL: Best Practices and Examples

    March 30, 2023
  • SQL Server Indexing: Clustered vs Non Clustered Index Explained

    March 26, 2023
  • Mastering Database Normalization: Best Practices and Techniques

    March 25, 2023
  • CRM Databases: The Key to Enhanced Customer Engagement and Sales

    March 23, 2023
  • Mastering SQL Inner Join: A Comprehensive Guide With Practical Examples

    March 17, 2023
  • Mastering the SQL UPDATE Statement: Updating tables and values

    February 25, 2023
  • SQL EXISTS – Exploring EXISTS Operator in SQL Server

    February 24, 2023
  • Like operator in SQL

    February 19, 2023
  • Understanding COALESCE in SQL With Examples

    February 18, 2023

Recent Posts (Programs)

  • C# program to count the occurrences of each character in a String

    November 15, 2023
  • Program to Convert Fahrenheit to Celsius: Algorithm, Formula, and Code Examples

    March 9, 2023
  • Leap Year Program in C, C++, C#, JAVA, PYTHON, and PHP.

    April 10, 2023
  • Fibonacci sequence: Fibonacci series in C# (with examples)

    March 2, 2023
  • Palindrome program in C# with examples

    November 28, 2023
  • C# Program to Print Multiplication Table of a Given Number

    November 30, 2023
  • Program to copy all elements of an array into another array

    April 5, 2023
  • Generating Prime Numbers with Code Examples in C#, C, C++, Java, PHP, and Python

    March 11, 2023
  • Program To Find Largest Number In An Array

    December 8, 2023
  • Understanding Bubble Sort Algorithm (with examples)

    April 9, 2023
  • C# Program to Capitalize the First Character of Each Word in a String

    February 21, 2024
  • C# Program to Convert Binary to Decimal with Examples

    December 4, 2023
  • How to Remove Duplicate Characters from a String in C#: A Beginner’s Guide

    November 11, 2023
  • Find the missing number in an array using C#, Python, Java, and C with code examples.

    January 16, 2024
  • C# Program to Check if a Given Number is Even or Odd

    November 26, 2023
  • C# Tutorial
  • Design patterns
  • Learn ASP.NET Web API
  • Programs
  • SQL Tutorial
Copyright © ShekhAli 2025 - All Rights Reserved |About Us| Contact Us |Privacy Policy|