Tags archives: csharp

  • Difference between For and Foreach Loop in C# [Note]

  • The for loop executes a statement or a block of statements repeatedly until a specified expression evaluates to false. There is need to specify the loop bounds( minimum or maximum). The foreach statement repeats a group of embedded statements for each element in an array or an object collection.[...]
  • Implementation of Dependency Injection Pattern in C#

  • Dependency Injection (DI) is a software design pattern that allow us to develop loosely coupled code. DI is a great way to reduce tight coupling between software components. DI also enables us to better manage future changes and other complexity in our software. The purpose of DI is to make code mai[...]
  • Breaking Singleton questions you may get in interviews

  • Even though we avoided multiple instance creation of singleton class by using Double checked locking or Eager instance creation, instances can still be created by : – cloning – reflection – Sub-classing singleton class How to avoid Singleton instance creation by cloning ? We can create a copy o[...]
  • 7 ways to start a Task in .NET C#

  • New threads can be started using the Task Programming Library in .NET in – at last – 5 different ways. You’ll first need to add the following using statement: [crayon-5d31d37bd151c475324107/] The most direct way [crayon-5d31d37bd1529491409262/] Using Action [crayon-5d31d37bd1538081074370/] [...]
  • Performance And Memory Tips for An Application

  • Performance and memory utilization play very important role for success of any application.we should be very careful for the application’s footprint and performance during development of application. I have shared some common and important rules that will be very useful for developer. Don't [...]
 

Enjoy this blog? Please spread the word :)