Assignment .NET framework and C#

Share this…Facebook0TwitterLinkedinPrint Post Views: 863 Assignment .NET framework and C# Q1. What is Namespace? Explain the methods and properties of System.Collections. Ans. C# Namespaces Namespaces in C# are used to organize too many classes so that it can be easy to handle the application. In a simple C# program, we use System.Console where System is […]

Attributes in C#

Share this…Facebook0TwitterLinkedinPrint Post Views: 484 Attributes in C#:- Types, members, and other entities in a C# program support modifiers that control certain aspects of their behavior. For example, the accessibility of a method is controlled using the public, protected, internal, and private modifiers. C# generalizes this capability such that user-defined types of declarative information can […]

Delegates in C#

Share this…Facebook0TwitterLinkedinPrint Post Views: 456 Delegates in C#:- A delegate type represents references to methods with a particular parameter list and return type. Delegates make it possible to treat methods as entities that can be assigned to variables and passed as parameters. Delegates are similar to the concept of function pointers found in some other […]

Enums in C#

Share this…Facebook0TwitterLinkedinPrint Post Views: 474 Enums in C#:- An enum type is a distinct value type with a set of named constants. The following example declares and uses an enum type named Color with three constant values, Red, Green, and Blue. using System; enum Color { Red, Green, Blue } class Test { static void […]

Interface in C#

Share this…Facebook0TwitterLinkedinPrint Post Views: 528 Interface in C#: An interface defines a contract that can be implemented by classes and structs. An interface can contain methods, properties, events, and indexers. An interface does not provide implementations of the members it defines—it merely specifies the members that must be supplied by classes or structs that implement […]