Dream Coding

Pages - Menu

▼
▼
Saturday, 19 April 2025

Custom Immutable Class

›
Creating an immutable class in C# ensures that once an instance is created, its state cannot be modified. This is useful for Creating reliab...
2 comments:

Multiple implementations of an interface with number of Services

›
All ManagerService, TeamLeaderService and EngineerService are registered with the DI container.   The EmployeeController constructor injects...
Monday, 5 August 2024

intview questions

›
using System; public class HelloWorld { public static void Main(string[] args) { A obja=new B(); obja.Method(); ...
Thursday, 18 July 2024

Using Orderby ascending and Orderby descending to sort array javascript

›
Array.prototype.orderby=function() { let self=this; let arr=[self[0]], i=1; for(;i<self.length; i++) { let index=arr.f...
Wednesday, 17 July 2024

Javascript String extend for new function.

›
Javascript String extend for new function. First Approch: String.prototype.toArray=function(){ let arr=[]; for(let ch of this){ ...
›
Home
View web version
Powered by Blogger.

About Me

My photo
Suresh Sharma
View my complete profile