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#)

  • Params Keyword in C# With Examples

  • C# ArrayList vs List: Key Differences and Benefits

  • Understanding the Chain of Responsibility Design Pattern in C#

  • Delete vs Truncate vs Drop in SQL Server (2023)

  • OOPs Concepts in C# with Examples (2023)

  • Difference between Boxing and Unboxing in C#

  • Understanding the C# While Loop: A Beginner’s Guide

  • Generics in C#: A Comprehensive Guide with Code Examples and Explanations

  • C# TextWriter – Understanding TextWriter In C# (With Examples)

  • Singleton Design Pattern in C#: A Beginner’s Guide with Examples

  • C# dispose vs finalize – Understanding the difference between dispose and finalize in C#

  • Early and Late Binding in C#: Everything You Need to Learn

  • Jump Statements in C# (Break, Continue, Goto, Return and Throw)

  • Difference Between Array And ArrayList In C#: Choosing the Right Collection

  • ASP.NET Core Middleware With Examples

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 find the maximum and minimum number in an array with examples

    December 10, 2023
  • C# Program to Convert Binary to Decimal with Examples

    December 4, 2023
  • C# Program to Convert Decimal to Binary with Examples

    December 4, 2023
  • Converting Celsius to Fahrenheit in C#: A Comprehensive Guide

    February 9, 2023
  • Program to Remove Duplicate Elements from an Array with examples

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

    February 21, 2024
  • Fibonacci sequence: Fibonacci series in C# (with examples)

    March 2, 2023
  • C# program to count vowels and consonants in a string

    November 21, 2023
  • C# Program to Find the Longest Word in a String

    February 19, 2024
  • Find the missing number in an array using C#, Python, Java, and C with code examples.

    January 16, 2024
  • C# program to find all duplicate elements in an integer array

    January 31, 2024
  • Program to Reverse a Number and String in C#

    February 11, 2024
  • Program To Find Largest Number In An Array

    December 8, 2023
  • C# Program to Swap Two Numbers (With Multiple Examples)

    November 27, 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|