Gad Theory
Gad Theory
Gad Theory
NET Framework
.NET framework is a pure object oriented, that similar to the Java language. But it
is not a platform independent as the Java. So, its application runs only to the
windows platform.
The main objective of this framework is to develop an application that can run on
the windows platform.
Is a program that turns bytecode into instructions that can be sent directly to a
computer's processor (CPU). Typically, compilers are key in deciding the speed of
an application for developers and end users. Just-in-time compilers can be used
for performance optimization to improve application runtime.
the main defining characteristic of a JIT compiler is that a JIT compiler runs after a
program starts and compiles code. A common way to say this is that a JIT
compiler compiles code on the fly, or in other words, just in time. The compiled
code, or bytecode sequences, are turned into a faster, more readable machine
language, or native code.
What is a namespace?
Namespaces are a way to define the classes and other types of information into
one hierarchical structure. System is the basic namespace used by every .NET
code. If we can explore the System namespace little bit, we can see it has lot of
namespace user the system namespace. For example, System.Io, System.Net,
System.Collections, System.Threading, etc.
VB.NET Code:
Namespace Books
Class Authors
'Do something
End Class
End Namespace
Syntax:
VariableName: It defines the name of the variable that you assign to store values.
Decimal 16 bytes
Double 8 bytes
Integer 4 bytes
Long 8 bytes
Object Object size based on the platform such as 4 bytes
in 32-bit and 8 bytes in 64-bit platform
Operators in VB.net
Arithmetic Operators
Comparison Operators
Logical/Bitwise Operators
Bit Shift Operators
Assignment Operators
Arithmetic operators
<> Checks if the values of two operands are equal or not; if (A <> B) is
values are not equal, then condition becomes true. true.
> Checks if the value of left operand is greater than the (A > B) is
value of right operand; if yes, then condition becomes not true.
true.
< Checks if the value of left operand is less than the value of (A < B) is
right operand; if yes, then condition becomes true. true.
>= Checks if the value of left operand is greater than or equal (A >= B) is
to the value of right operand; if yes, then condition not true.
becomes true.
<= Checks if the value of left operand is less than or equal to (A <= B) is
the value of right operand; if yes, then condition becomes true.
true.
Logical operators
And The And Operator represents, whether both the operands are true; (A And B),
the result is True. result = False
Not The Not Operator is used to reverse the logical condition. For Not A
example, if the operand's logic is True, it reveres the condition and
makes it False. Or
Not(A And B)
is True
Loops in VB.net
VB.Net provides following types of loops to handle looping requirements. Click
the following links to check their details.
A class is a group of different data members or objects with the same properties,
processes, events of an object, and general relationships to other member
functions.
Objects are the basic run-time units of a class. Once a class is defined, we can
create any number of objects related to the class to access the defined properties
and methods. For example, the Car is the Class name, and the speed, mileage, and
wheels are attributes of the Class that can be accessed by the Object.
We can create a class using the Class keyword, followed by the class name. And
the body of the class ended with the statement End Class.
VB.NET Destructor
Inheritance in vb.net
Inheritance is a fundamental principle of object-oriented programming. It allows a
class to inherit the behavior or characteristics from base class to child class.
ADO.net
ADO.NET provides a bridge between the front end controls and the back
end database. The ADO.NET objects encapsulate all the data access
operations and the controls interact with these objects to display data, thus
hiding the details of movement of data.
The .NET Framework provides the following data providers that we can use in our
application.
.NET Framework Data Provider It provides data access for Microsoft SQL Server. It requires
for SQL Server the System.Data.SqlClient namespace.
.NET Framework Data Provider It is used to connect with OLE DB. It requires
for OLE DB the System.Data.OleDb namespace.
.NET Framework Data Provider It is used to connect to data sources by using ODBC. It requires
for ODBC the System.Data.Odbc namespace.
Object Description
DataReader It is used to read data from data source. The DbDataReader is a base class for all
DataReader objects.
DataAdapter It populates a DataSet and resolves updates with the data source. The base class for all
DataAdapter objects is the DbDataAdapter class.
What is data binding?
The ability of a control to bind to a single data element, such as a value in a
column in a dataset table
Windows Forms can take advantage of two types of data binding: simple binding and
complex binding. Each offers different advantages.
Simple data The ability of a control to bind to a single data element, such as a value in a column in a
binding dataset table. Simple data binding is the type of binding typical for controls such as
a TextBox control or Label control, which are controls that typically only display a single value.
Complex The ability of a control to bind to more than one data element, typically more than one record
data in a database. Complex binding is also called list-based binding. Examples of controls that
binding support complex binding are the DataGridView, ListBox, and ComboBox controls.