C# Corner

  • Measure Depth of Inheritance and Class Coupling in Visual StudioApr 20, 2014. Here, we will see how to measure depth of inheritance and class coupling in the Visual Studio environment.
  • Difference Between Loose Coupling and Tight CouplingDec 19, 2012. The pros and cons Loose Coupling and Tight Coupling.
  • Voice Of A Developer: Decoupling Your Application - Part 35Jun 07, 2016. In this article, you will learn about decoupling your application in JavaScript.
  • In Depth Look: Strategy Design Pattern, Dependency Injection (DI), Open/Closed Principle (OCP) and Loose CouplingJun 06, 2015. This article explains the Strategy Design Pattern, Dependency Injection, Open/Closed principle and Loose Coupling.
  • JavaScript Postback Download Via PowerShellMar 28, 2018. Recently, one of my clients had a need to automatically download a file from a public facing state government website. Normally this can easily be done in a number of ways. Powershell is the first way that comes to mind but you could also utilize scripting tools such as wget or curl just to name a couple. However, thanks to the awesome power (note: sarcasm) of Dot Net Nuke, the download link is hidden behind Javascript postback functionality.
  • Dependency Injection Using Unity - Resolve Dependency Of DependenciesMar 13, 2018. In this article, you will learn to showcase the existing problems with tightly coupled applications, how to make the application loosely coupled and achieve inversion of control via dependency injection, solve the problem of resolving dependency of a dependency in a three-layered/n layered project architecture using unity framework.
  • Kick Start With Azure Cosmos DB - Part TwoMar 10, 2018. In this article, we will learn how to create a new Azure Cosmos DB for free. How? Can we use it for free? I have found a couple of alternative ways to use the Azure Cosmos DB for free without an Azure Subscription.
  • Using “ng-bootstrap” Components In Angular 5 AppJan 30, 2018. In our last article, we learned “how to install and setup ng-bootstrap in our angular 5 app?” In this article, we are going to cover a couple of bootstrap components provided by “ng-bootstrap” module in our angular 5 app.
  • Leadership Challenge 004 - The Happy Secret To Better Work!!!Jan 03, 2018. Hello my friends and Happy New Year!!! It has been a fun couple of months within Microsoft as a Customer Success Manager, driving adoption across MS solutions (Modern Workplace) within the organization.
  • ASP.NET Core 2.0 Bearer AuthenticationJan 02, 2018. Bearer Tokens (or just Tokens) are commonly used to authenticate Web APIs because they are framework independent, unlike something like Cookie Authentication that is tightly coupled with ASP.NET Core framework.
  • How To Create Page Loader Using CSSDec 28, 2017. A page loader is any quite animation that visually communicates to a visitant that the page is loading and to simply remain for a couple of seconds. ... it's the previous situation wherever a CSS page loader will work okay.
  • Dependency Injection - Part Four -Embracing AbstractionAug 18, 2017. Dependency Injection (DI) is a technique that helps us achieve loose coupling between objects and their collaborators. In this post, we will use constructor based dependency injection, however, we are not going to use any DI container for now.
  • Dependency Injection - Part Two - Five Reasons To Write Loosely Coupled CodeAug 09, 2017. A loosely coupled application has good isolation among its classes, modules and assemblies. Therefore, if we make a change to one part of the application, we only need to update the relevant modules. We do not need to make changes throughout the application.
  • Passing Data To AWS Lambda Function And Invoking It Using AWS CLIAug 09, 2017. In previous article, we learnt about AWS lambda structure and how a lambda function can be invoked. Before we go further, there are couple of things which are very important to consider while doing local development and production deployment.
  • Dependency Injection - Part One -Tightly Coupled ApplicationAug 07, 2017. It is a best practice to use interfaces instead of concrete classes. These interfaces can then be mocked at the time of unit testing, which will prevent any call to the actual database. Also, it is a good practice to stop "newing-up" objects in classes.
  • Measure Your Code Using Code MetricsJul 31, 2017. As a developer, when you are developing applications, how optimistic you are about delivering quality code? Quality code means not only bug free code but also understandable, maintainable, extensible, less complex and loosely coupled code.
  • ngFor Directive with Local Variables And trackBy In Angular 2Jul 22, 2017. There are couple of local variables with ngFor built-in structural directive provided by Angular 2, which I are used for getting the index of current element while iteration, for getting last or first element from the collection etc.
  • Windows Azure - IaaS VS PaaSApr 12, 2017. Windows Azure offers multiple categories but we will go through just a couple of them.
  • SharePoint 2016 Visio Graphic Service Common IssueMar 12, 2017. In this article, I will list a couple of common issues, which one can face, while using Visio Graphic Service in SharePoint 2016.
  • Onion Architecture Using MVC and Database First ApproachMay 05, 2015. The main purpose of this article is try to explain the Onion Architecture and provide sample sample code that is loosely coupled and easily maintainable.
  • Problems of Learning (Programming Language) in (x) DaysMay 03, 2015. This article points out a few of the problems of this type of teaching and learning for new developers, who might fall for this approach.
  • Basics of Dependency InjectionApr 27, 2015. In this article we will learn about Dependency Injection.
  • Dependency Injection In Software EngineeringApr 02, 2015. In this article we will learn about Dependency Injection which is a software design pattern that implements inversion of control.
  • Service Locator Design PatternJun 09, 2014. This article assumes a basic knowledge of de-coupled architecture. An understanding of various design patterns will help you to understand this better.
  • Implement Dependency Injection Using Autofac IoC ContainerJun 09, 2014. This article provides a basic understanding of de-coupled architecture and the concept of Inversion of Control.
  • Constructor Dependency Injection Pattern Implementation in C#May 25, 2014. This article is about the Constructor Dependency Injection Pattern Implementation in C#.
  • Demystify SOLID: D For “Dependency Inversion Principal”May 10, 2014. In this article we will discuss the last principal called “Dependency Inversion Principal”. This is one of the important principals to develop de-coupled architecture.
  • Dependency Inversion PrincipalApr 27, 2014. In this article we will discuss the last principal called “Dependency Inversion Principal”. This is one of the important principals for developing de-coupled architecture.
  • Customizing Debugging Session in .NET: Part IMar 06, 2014. This article describes a couple of ways to customize what the debugger shows us during debugging.
  • Simple Search Panel in MVC 4Aug 02, 2013. This article provides a demonstration of implementing a search panel in an MVC project using little more than a bit of JQuery along with a couple of freely available plugins.
  • Dynamic WCF Usage in ClientJun 13, 2013. I have decided to show a Channel Factory usage in the client side.The Channel Factory will be created in a generic ServiceFactory according to ServiceContract type. It will provide us full isolated usage WCF service more dynamically than adding a service into the service references. Also I would like to show us proxy and channelFactory usage differences.
  • SharePoint 2013 and Sharepoint 2010 Site Pages With Inline CodeMar 05, 2013. Recently a couple of people asked about adding inline code into an aspx page, that resides in a page library or document library.
  • Implement Concrete Factory Design Pattern using Reflection in VB.NETNov 10, 2012. Reflection is used to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object. In this example, we implement Concrete Factory Pattern using Reflection to fetch records from MS-Access and MS-SQL Database.
  • Providing unbound List based controls with Text and Value properties in VB.NETNov 10, 2012. The purpose of this article is to discuss the construction of a couple of simple custom controls that extend both the Combobox and the Listbox controls to allow them to be associated with both a text and a value property for each item in the control's list.
  • jQuery UI Datepicker in MVC 4 IssueOct 28, 2012. Today, I spent couple of hours in finding the best suited fix of this issue. Actually that was a very simple problem and we may fix it by adding another http request layer in the application but that was not a productive choice.
  • S.O.L.I.D Design Principles Explained : Part 1Aug 12, 2012. This article will cover the acronyms for SOLID and a brief introduction to Cohesion and Coupling is provided to understand the SOLID principles.
  • S.O.L.I.D Design Principles Explained : Part 2Aug 12, 2012. Here we will discuss the second letter in the word SOLID i.e., O. O stands for OCP (Open Closed Principle).
  • Working with Animating Attached Properties, Splines-Key Frames and Easing Functions in Windows Phone 7Dec 30, 2010. You can use Silverlight animations in a couple different ways to move an element around the screen. One way is to target a TranslateTransform set to the element’s RenderTransform property.
  • Patterns for centralising reference data management Dec 13, 2010. Sharing data can be difficult, this article shows some patterns you can use to share data between applications without causing tight coupling. Each pattern is described with its merits and drawbacks to allow you to make an informed decision.
  • Panels in Layout Mechanism for Windows Phone 7Dec 06, 2010. Panels are written entirely in code. There is no XAML involved. When you write a Panel derivative, you’ll probably be defining a couple properties to make the panel more flexible.
  • Progressbar control in Silverlight 3.0Nov 16, 2009. In this article, I will explain couple of things step by step. First how to work with Progressbar control of Silver Light 3.0.Then how to consume WCF service in Silverlight application when both are in same solution.
  • Introduction to Loosely Coupled CollectionsFeb 16, 2009. This article explains about Implementation of Loosely Coupled Collections in C#.
  • DI using Unity Application BlocksJan 20, 2009. In this article we will take up a simple example and try to implement DI using unity application blocks thus resulting in loosely coupled architecture.
  • DI and IOCJan 19, 2009. In this article we will discuss about how IOC and DI can help us build loosely coupled software architecture.
  • Design pattern -Inversion of control and Dependency injectionNov 04, 2008. In this section we will discuss about how IOC and DI can help us build loosely coupled software architecture.
  • Functional Programming with C# - CompositionMar 05, 2008. In this article we'll look at using a couple different functional approaches to implementing a basic formula through composition including using monads.
  • Object Instantiation in C#. Part II Factory MethodsJun 24, 2007. There are many ways to approach object instantiation. In this article we’ll cover a few of the patterns used to instantiate objects.
  • Multi-threaded Asynchronous Programming in C#. Async Database Calls. Part III.May 14, 2007. In my last couple articles we looked at basic ways to have long-running i/o bound process be handled by the ThreadPool using the asynchronous programming model. In this article we’ll take a look at coding async calls against SqlServer which really comes in handy in production environments where our database is on another machine.
  • How to assign Text and Values to Items in an Unbound List Based ControlMar 28, 2007. The purpose of this article is to discuss the construction of a couple of simple custom controls that extend both the Combobox and the Listbox controls to allow them to be associated with both a text and a value property for each item in the control's list.
  • A Better Solution for Enterprise Architects - SOA : Part IFeb 06, 2007. I would like to begin to determine what SOA (service-oriented architecture) is technically meaning. We can clearly say SOA is a methodology for designing software architectures to utilize and organize distributed systems using loosely coupled software services.
  • C# Friendly Assemblies: Looking at Building Truly Reusable ComponentsNov 01, 2006. This article discusses how we can hide our base class implementation and require referencing of our objects through their interfaces. This keeps our own projects loosely coupled and also allows us to publish our assemblies as truly reusable components because they are 100% “Black box”.
  • Asynchronous Callbacks and Ajax based UI Experience in Web ApplicationsSep 11, 2006. The current article shows a couple of different views of showing progress bars in Web based applications.
  • Aural Alert Generator (Voice and Tones)Aug 25, 2006. This article describes an application used to generate and test aural alerts; I wrote the application originally to allow me to define and test aural alerts for use in a couple of cockpit simulators, however, you could use the application to generate aural alerts for any purpose. The application also may be used to define voice messages which may be optionally saved as wave files for subsequent use in other applications.
  • An Elegant C# Data Access Layer using the Template Pattern and GenericsMay 22, 2006. The GOF Template pattern coupled with .NET 2.0 Framework generics provides an awesome synergistic alliance. This article demonstrates how to drastically reduce the amount of code required in building a data access layer. Less code to debug... less code to break... less code to maintain... what could be better?
  • Enhancements in Assemblies and Versioning in Visual Studio 2005May 01, 2006. The article discusses a couple of features introduced for assembly and versioning in Visual Studio 2005 such as referencing assemblies, registering assemblies to GAC, digital signing and friend assemblies.
  • C# Interface Based DevelopmentMar 06, 2006. When trying to build maintainable, reusable, and flexible C# code, the object oriented nature of C# only gets us 50% of the way there. Programming to interfaces can provide us with the last 50%. Interfaced-based design provides loose coupling, true component-based programming, easier maintainability and it makes code reuse much more accessible because implementation is separated from the interface.
  • Business Process Execution Language for Web Services 1.0Mar 11, 2004. Web Services use a loosely coupled integration model to allow flexible integration of heterogeneous systems in a variety of domains including business-to-consumer, business-to-business and enterprise application integration.
  • Image Resizing : Part IIJan 12, 2004. In my first article Image Resizing and FTP, I showed how I resize my digital camera pictures and FTP them to the web. I received a couple of requests to share the code for the image gallery on my web site that I use to view them so here it is.
  • OpenGL BasicsOct 09, 2002. In this article I want to explain couple of more things. First of all, I would like to cover the OpenGL Coordinate System.
  • Writing a Generic Data Access ComponentJul 17, 2002. OK, I've received couple of emails people asking me how can they use a common data provider to access various types of data sources without loosing the power and flexibility of native data provider libraries.
  • Writing a Generic Data Access ComponentJul 17, 2002. I've received couple of emails people asking me how can they use a common data provider to access various types of data sources without loosing the power and flexibility of native data provider libraries.
  • Creating and Opening Microsoft Word Document from .NET Using C#Mar 08, 2002. This article is being written in response to a couple inquiries on the question, How do I open a word document from .NET?.
  • Drag and Drop RevisitedMar 13, 2001. I've had a couple inquiries on how to do drag and drop in .NET again, so I've put together a simple app for dragging text from a TreeView to a TreeView and a TreeView to a ListBox.

About coupling

Hire a remote developer
Looking to add more bandwidth to your software team? Web Developers, designers, testers are now available on demand. Flexible hours, very competitive rates, expert team and High Quality work.

Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now