top of page

C#

Public·1 member

Sunil Dhaul
October 19, 2025 · updated the description of the group.

Welcome to the C# group! This is the place for developers of all levels to discuss, learn, and share everything about C# programming. Whether you’re working on desktop applications, web development, or exploring the latest features of the language, you’ll find support, resources, and inspiration here. Connect with fellow C# enthusiasts, ask questions, and grow your skills together.

9 Views

How to dynamically load Oracle.ManagedDataAccess.Client using C#


When a .NET DLL library depends on an ADO.NET data provider, we can either reference the ADO.NET provider in our DLL project or we can use reflection in C# to dynamically load the data provider and not reference the provider assembly. The project in which the DLL is being used may prefer using an Oracle provider, a MySQL provider or a SQL Server provider, and therefore, there is a need to dynamically use the preferred provider.


The code below implements such a requirement.


Alternate sample code that uses the Instance field to implement the above requirement


31 Views

Thread


A thread and a task are related terms/concepts in programming.


The meaning of a task in a very literal sense is as explained below.

A task means a part of our code, and generally speaking, we would have many tasks to do before our code runs to completion.

We can execute a task or run a thread, and both would end up executing some part of our code. Also, note that a thread could sequentially execute many tasks if only a single thread is running.


What is a Task in a programmatic sense?

A Task is a programming object that represents a method/code in our C# or VB.NET code that can be run separately from other parts of the code. We call the Run method on a Task object to run the code that is represented by a Task.


23 Views
    bottom of page