Data Types in C#
C# provides various built-in data types. Built-in data types are predefined data types that can be directly used in a program to declare variables.
Built-in #Bytes ...
Variable
Consider a situation where you have to create a program that accepts two numbers from a user and displays the sum of the numbers on the screen. Now, while reading the numbers provided by the user, you need to store these numbers somewhere in the memory so that you can perform the add operation on the numbers. You can store the numbers in the memory by...
The Three Layers of a Web Application
All applications can be broken into three layers. Each layer has its own components and functionality. The following figure depicts the various layers that constitute a Web application.
As displayed in the preceding figure, an application has the following three layers:
Presentation layer: Consists of the interface through which...
Classes in C#
C# classes are the primary building blocks of the language. C# also provides certain predefined set of classes and methods. These classes and methods provide various basic functionalities that you may want to implement in your application.
For example, if you want to perform some input/output operations in your application, you can use predefined...