DotNet By Ajay — New: ES2025 cheat-sheet is live!
Showing posts with label DotNet By Ajay. Show all posts
Showing posts with label DotNet By Ajay. Show all posts

July 10, 2026

C# Interview Question: Does the order of members inside a C# class matter?

Does the order of members inside a C# class matter?

Short Answer: No. The order of constructors, properties, methods, and fields inside a C# class does not affect compilation or runtime behavior. The C# compiler processes the entire class definition before generating Intermediate Language (IL).

July 5, 2026

Master the Single Responsibility Principle (SRP) in C# | SOLID Principles

Single Responsibility Principle (SRP) in C#
Single Responsibility Principle (SRP) in C#

✅ Definition: A class should have only one responsibility, and therefore only one reason to change.

In simple words: One Class = One Job = One Reason to Change

July 2, 2026

C# Program - Find missing number in Array

Find missing number in Array

Mostly asked interview question - Find missing number in Array

May 31, 2026

LeetCode #185: Department Top Three Salaries | SQL Interview Question Explained

Master LeetCode #185 (Department Top Three Salaries)

Master LeetCode #185 (Department Top Three Salaries) with a step-by-step SQL solution using DENSE_RANK(). Learn the approach, query explanation, and interview tips for SQL, .NET, and Data Engineering interviews.