C# Program to Implement Arithmetic Operations using Delegates

This is a C# Program to implement arithmetic operations using delegates. Problem Description This C# Program Implements Arithmetic Operations using Delegates. Problem Solution Here the delegate is a form of type-safe function pointer used by the .NET Framework. Delegates are often used to implement callbacks and event listeners. A delegate does not need to know … Read more

advertisement

C# Program to Implement Principles of Delegates

This is a C# Program to implement principles of delegates. Problem Description This C# Program Implements Principles of Delegates. Problem Solution Here delegate is a type that represents references to methods with a particular parameter list and return type. When you instantiate a delegate, you can associate its instance with any method with a compatible … Read more

advertisement

C# Program to Display Results using Delegates

This is a C# Program to display results using delegates. Problem Description This C# Program Displays Results using Delegates. Problem Solution Here delegate is a type which holds the method(s) reference in an object. It is also referred to as a type safe function pointer. Program/Source Code Here is source code of the C# Program … Read more

advertisement

C# Program to Call Math Operations using Delegates

This is a C# Program to call math operations using delegates. Problem Description This C# Program Calls Math Operations using Delegates. Problem Solution Here the Delegates are used to encapsulate functions into callable function objects that are used much as function pointers are used in C, C++, and other languages. Like function pointers, delegates enable … Read more

advertisement

C# Program to Demonstrate Properties of the Interface

This is a C# Program to demonstrate properties of the interface. Problem Description This C# Program Demonstrates Properties of the Interface. Problem Solution Here the syntax for a property type on an interface declaration is different and the interface declarations do not include modifiers such as “public.” Program/Source Code Here is source code of the … Read more

advertisement

C# Program to Demonstrate the iList Interface

This is a C# Program to demonstrate iList interface. Problem Description This C# Program Demonstrates iList Interface. Problem Solution Here Lists and arrays implement IList and this interface is an abstraction that allows list types to be used with through a single reference type. With it, we can create a single method to receive an … Read more

advertisement

C# Program to Demonstrate Single Inheritance

This is a C# Program to illustrate single inheritance. Problem Description This C# Program Illustrates Single Inheritance. Problem Solution Here In single inheritance we have single base class that is inherited by the derived class and the derived class has all the features of the base class and can add some new features and italso … Read more

advertisement

C# Program to Demonstrate Hierarchical Inheritance

This is a C# Program to illustrate hierarchical inheritance. Problem Description This C# Program Illustrates Hierarchical Inheritance. Problem Solution Here Single parent and multiple child and when more than one derived class are created from single base class is called C# Hierarchical Inheritance. Program/Source Code Here is source code of the C# Program to Illustrate … Read more

advertisement

C# Program to Demonstrate Transactions using Interface

This is a C# Program to demonstrate transactions using interface. Problem Description This C# Program Demonstrates Transactions using Interface. Problem Solution Here interfaces define properties, methods and events, which are the members of the interface and contains only the declaration of the members and has the responsibility of the deriving class to define the members. … Read more

advertisement

C# Program to Demonstrate the iDictionary Interface

This is a C# Program to demonstrate idictionary interface. Problem Description This C# Program Demonstrates iDictionary Interface. Problem Solution Here this program uses both the Dictionary and SortedDictionary types. Suppose that you want to add some functionality that can work on an instance of Dictionary or an instance of SortedDictionary. Program/Source Code Here is source … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.