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

  • Understanding Covariance and Contravariance in C# – A Comprehensive Guide

  • C# Program to Capitalize the First Character of Each Word in a String

  • C# Hashtable with example – How to use and when to use?

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

  • C# String Interpolation – Syntax, Examples, and Performance

  • C# Interface – Understanding Interfaces in C# (With Examples)

  • Understanding Open Closed Principle (OCP) in C# With Examples

  • C# Arrays: Everything You Need to Know About Array in C#

  • Having VS Where Clause in SQL | Explore the main Differences between Where and Having Clause in SQL

  • Understanding C# Class and Objects

  • Prototype Design Pattern: Everything You Need to Know

  • C# Polymorphism: Different types of polymorphism in C# with examples

  • Like operator in SQL

  • C# Partial Class And Partial Methods With Examples

  • C# Liskov Substitution Principle 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 Swap Two Numbers (With Multiple Examples)

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

    November 30, 2023
  • Program to Reverse a Number and String in C#

    February 11, 2024
  • How to Remove Duplicate Characters from a String in C#: A Beginner’s Guide

    November 11, 2023
  • Understanding Bubble Sort Algorithm (with examples)

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

    January 14, 2024
  • How to remove special characters from a string in C#

    November 21, 2023
  • C# program to count the occurrences of each character in a String

    November 15, 2023
  • C# Program to Convert Binary to Decimal with Examples

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

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

    March 9, 2023
  • Program to copy all elements of an array into another array

    April 5, 2023
  • C# Regex: Introduction to Regular Expressions in C# with Examples

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

    November 21, 2023
  • C# Program to rotate an array by k position

    January 18, 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|