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

  • SQL pivot tables: Understanding pivot tables in SQL Server

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

  • Types of Comments in C#: Single Line, Multiline and XML Comments

  • C# Field vs Property (with Examples)

  • C# program to count vowels and consonants in a string

  • 5 Types of SQL Commands: DML, DDL, DCL, TCL, DQL with Query Example

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

  • C# Dictionary – How to Use a Dictionary in C# [With Examples]

  • Difference Between UNION and UNION ALL in SQL

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

  • OOPs Concepts in C# with Examples (2023)

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

  • CRM Databases: The Key to Enhanced Customer Engagement and Sales

  • C# Dynamic Type: Var vs dynamic keywords in C#

  • C# stack vs heap: Understanding the difference between Stack and Heap memory 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 Convert Binary to Decimal with Examples

    December 4, 2023
  • C# Regex: Introduction to Regular Expressions in C# with Examples

    March 10, 2023
  • Program to find the maximum and minimum number in an array with examples

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

    April 9, 2023
  • C# Program to Print Multiplication Table of a Given Number

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

    March 9, 2023
  • Fibonacci sequence: Fibonacci series in C# (with examples)

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

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

    April 5, 2023
  • Leap Year Program in C, C++, C#, JAVA, PYTHON, and PHP.

    April 10, 2023
  • C# Program to Check Armstrong Number: A Comprehensive Guide with Code Examples

    December 6, 2023
  • Program to Remove Duplicate Elements from an Array with examples

    December 8, 2023
  • C# Program to Convert Hexadecimal to Decimal with Examples.

    December 5, 2023
  • C# Program to rotate an array by k position

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

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