Advantages of .NET over the other languages, overview of .NET binaries, Intermediate Language, metadata, .NET Namespaces, Common Language runtime, common type system, common Language Specification.
C# fundamentals – C# class, object, string formatting, Types, scope, constants, C# iteration, control flow, operators, array, string, Enumerations, structures, custom Namespaces
A method is a code block that contains a series of statements. A program causes the statements to be executed by calling the method and specifying any required method arguments. In C#, every executed instruction is performed in the context of a method.
A method is a code block that contains a series of statements. A program causes the statements to be executed by calling the method and specifying any required method arguments. In C#, every executed instruction is performed in the context of a method.
What is a constructor?
Constructor is a method which gets executed automatically when we create or instantiate object of that class having constructor.
More Highlights of Constructor
A single class can have multiple constructors means we can have more than one constructor in a class. It is also called as overloaded constructor.
A benefit of using a constructor is that it guarantees that the object will go through a proper initialization before an object being used means we can pre-initialize some of the class variables with values before an object being used.
A constructor can be called another constructor by using "this" keyword. "this" keyword is the current instance of a class.
View study notes of Function overloading .you can also visit Tutorialfocus.net to get complete description step wise of the concerned topic.Other topics and notes of C++ are also explained.
Inheritance is the capability of a class to use the properties and methods of another class while adding its own functionality.
Enables you to add new features and functionality to an existing class without modifying the existing class.
This tutorial on DataTypes in C will acquaint you with a clear understanding of the fundamentals of DataTypes in C and their fundamentals. In this C Tutorial for beginners, you will get a better understanding of what are datatype Literals and Variables are. we will start to learn C with an introduction to the C variables. After that, we will discuss the types of variables in detail. Then we will talk about primitive types. Then we will wind up this session with a demo on DataTypes in C and Variables. First, We will start by discussing What are variables in C data Types and Variables to learn fundamentals. Then we will discuss the types of variables in C Datatypes and Variables. here we have discussed various types like primitive types and objects. Then we will discuss primitive Types in C data Types and Variables. here we have discussed various types like signed, unsigned and floating-point. Finally, we end the session with the demo on DataTypes in C and Variables.
C# - Constants and Literals. The constants refer to fixed values that the program may not alter during its execution. These fixed values are also called literals. Constants can be of any of the basic data types like an integer constant, a floating constant, a character constant, or a string literal.
What is a constructor?
Constructor is a method which gets executed automatically when we create or instantiate object of that class having constructor.
More Highlights of Constructor
A single class can have multiple constructors means we can have more than one constructor in a class. It is also called as overloaded constructor.
A benefit of using a constructor is that it guarantees that the object will go through a proper initialization before an object being used means we can pre-initialize some of the class variables with values before an object being used.
A constructor can be called another constructor by using "this" keyword. "this" keyword is the current instance of a class.
View study notes of Function overloading .you can also visit Tutorialfocus.net to get complete description step wise of the concerned topic.Other topics and notes of C++ are also explained.
Inheritance is the capability of a class to use the properties and methods of another class while adding its own functionality.
Enables you to add new features and functionality to an existing class without modifying the existing class.
This tutorial on DataTypes in C will acquaint you with a clear understanding of the fundamentals of DataTypes in C and their fundamentals. In this C Tutorial for beginners, you will get a better understanding of what are datatype Literals and Variables are. we will start to learn C with an introduction to the C variables. After that, we will discuss the types of variables in detail. Then we will talk about primitive types. Then we will wind up this session with a demo on DataTypes in C and Variables. First, We will start by discussing What are variables in C data Types and Variables to learn fundamentals. Then we will discuss the types of variables in C Datatypes and Variables. here we have discussed various types like primitive types and objects. Then we will discuss primitive Types in C data Types and Variables. here we have discussed various types like signed, unsigned and floating-point. Finally, we end the session with the demo on DataTypes in C and Variables.
C# - Constants and Literals. The constants refer to fixed values that the program may not alter during its execution. These fixed values are also called literals. Constants can be of any of the basic data types like an integer constant, a floating constant, a character constant, or a string literal.
INTRODUCTION : Server Centric IT Architecture and its Limitations; Storage – Centric IT Architecture and its advantages; Case study: Replacing a server with Storage Networks; The Data Storage and Data Access problem; The Battle for size and access.
INTELLIGENT DISK SUBSYSTEMS – 1
Architecture of Intelligent Disk Subsystems; Hard disks and Internal I/O Channels, JBOD, Storage virtualization using RAID and different RAID levels;
SAN ARCHITECTURE AND HARDWARE DEVICES : Overview, creating a Network for storage; SAN Hardware devices, The fibre channel switch, Host Bus adaptors; Putting the storage in SAN; Fabric operation from a Hardware perspective
FILE SYSTEM AND NAS: Local File Systems; Network file Systems and file servers; Shared Disk file systems; Comparison of fiber Channel and NAS.
STORAGE VIRTUALIZATION: Definition of Storage virtualization; Implementation Considerations; Storage virtualization on Block or file level; Storage virtualization on various levels of the storage Network; Symmetric and Asymmetric storage virtualization in the Network
INTELLIGENT DISK SUBSYSTEMS – 2, I/O TECHNIQUES – 1
Caching: Acceleration of Hard Disk Access; Intelligent disk subsystems; Availability of disk subsystems. The Physical I/O path from the CPU to the Storage System; SCSI.
I/O TECHNIQUES – 2, NETWORK ATTACHED STORAGE
Fibre Channel Protocol Stack; Fibre Channel SAN; IP Storage. The NAS Architecture, The NAS hardware Architecture, The NAS Software Architecture, Network connectivity, NAS as a storage system.
Web applications and web servers, HTML form Development, GET and POST, ASP.NET application, ASP.NET namespaces, creating sample C# web Applications, architecture, Debugging and Tracing of ASP.NET, Introduction to web Form controls. Building Web Services- web service namespaces, building simple web
Architectural Styles and Case Studies, Software architecture ,unit–2Sudarshan Dhondaley
Architectural styles; Pipes and filters; Data abstraction and object-oriented organization; Event-based, implicit invocation; Layered systems; Repositories; Interpreters; Process control; Other familiar architectures; Heterogeneous architectures. Case Studies: Keyword in Context; Instrumentation software; Mobile robotics; Cruise control; three vignettes in mixed style.
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
How to Split Bills in the Odoo 17 POS ModuleCeline George
Bills have a main role in point of sale procedure. It will help to track sales, handling payments and giving receipts to customers. Bill splitting also has an important role in POS. For example, If some friends come together for dinner and if they want to divide the bill then it is possible by POS bill splitting. This slide will show how to split bills in odoo 17 POS.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
Andreas Schleicher presents at the OECD webinar ‘Digital devices in schools: detrimental distraction or secret to success?’ on 27 May 2024. The presentation was based on findings from PISA 2022 results and the webinar helped launch the PISA in Focus ‘Managing screen time: How to protect and equip students against distraction’ https://www.oecd-ilibrary.org/education/managing-screen-time_7c225af4-en and the OECD Education Policy Perspective ‘Students, digital devices and success’ can be found here - https://oe.cd/il/5yV
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
1. 1
C # and .Net Technologies
Advantages of .NET over the other languages
The .Net Framework offers a number of advantages to developers.
Below are few advantages of .Net Framework:
1. Consistent programming model : With .Net accessing data with a C# and VB.Net very similar
apart from slight syntactial differeneces. Both the programs need to import the System.Data
namespace, both programs establish connection with database and both programs run a
query and display the data.
2. Direct Support for Security : .Net framework enables the developer and the system
administrator to specify method level security.
3. Simplified Development efforts: The .Net Framework simplifies debugging with support for
Runtime diagnostics.
4. Easy application deployment and Maintenance : The .Net Framework makes easy to deploy
applicaitons.The .Net Framework handles the details of locating and loads the components.
5. Assemblies : Assembly is elementary unit in a framework application. It performs various
functions in programming with the .Net Frame work. Every computer that has the .Net
Framework installed with have the Global Assembly Cache.
Overview of .NET binaries
.NET binaries take the extension of .dll
.NET binaries do not contain platform-specific instructions, but rather platform-
agnostic intermediate language (IL) and type metadata.
When a *.dll or *.exe has been created using a .NET-aware compiler, the resulting
module is bundled into an assembly.
Note: An assembly is a collection of types and resources that are built to work together and form a logical unit
of functionality
2. 2
Intermediate Language
CIL(Common Intermediate Language) is a language that sits above any particular
platform-specific instruction set. Regardless of which .NET-aware language you
choose, the associated compiler emits CIL instructions
For example, C# compiler emits CIL, not platform-specific instructions
Benefits of CIL:
One benefit is language integration. .NET-aware compiler produces nearly identical
CIL instructions. Therefore, all languages are able to interact within a well-defined
binary arena
.NET allows you to build applications using your language of choice
Metadata
In addition to CIL instructions, a .NET assembly contains full, complete, and accurate
metadata
Metadata describes each and every type (class, structure, enumeration, and so forth)
defined in the binary, as well as the members of each type (properties, methods, events, and
so on).
It is always the job of the compiler to generate latest metadata.
.NET Namespaces
C# language does not come with a language-specific code library. Rather, C# developers
leverage the language-neutral .NET libraries.
A namespace is a grouping of related types contained in an assembly. For example, the
System.IO namespace contains file I/O related types, the System.Data namespace defines
basic database types, and so on
Any language targeting the .NET runtime makes use of the same namespaces and same
types.
Accessing a Namespace Programmatically
// Explicitly list the namespaces used by this file.
using System;
using System.Drawing;
class MyApp {
public void DisplayLogo() {
// Create a 20_20 pixel bitmap.
Bitmap companyLogo = new Bitmap(20, 20);
...
} }
3. 3
Building block of .NET
Common Language runtime, common type system, common Language Specification
Note: In the world of .NET, “type” is simply a generic term used to refer to a member from the set {class,
structure, interface, enumeration, delegate}
Common Type System (CTS)
CTS is a formal specification that documents how types must be defined in order to be
hosted by the CLR
Five types defined by the CTS:
1. CTS Class Types
2. CTS Structure Types
3. CTS Interface Types
4. CTS Enumeration Types
5. CTS Delegate Types
Common Language Specification
Different languages express the same programming constructs in unique, language specific
terms, for example, in c# for Concatenation we use ‘+’ operator, while in VB.NET we use ‘&’.
Yet, respective compilers (csc.exe or vbc.exe, in this case) emit a similar set
of CIL(Common Intermediate Language) instructions.
The Common Language Specification (CLS) is a set of rules that describe in vivid detail the
minimal and complete set of features a given .NET-aware compiler must support to produce
code that can be hosted by the CLR.
The CLS is ultimately a set of rules that compiler builders must conform to, if they intend
their products to function seamlessly within the .NET universe.
Common Language Runtime
Term runtime can be understood as a collection of external services that are required to
execute a given compiled unit of code.
.NET runtime provides a single well-defined runtime layer that is shared by all languages and
platforms that are .NET-aware
The runtime engine is responsible for a number of tasks:
Firstly, it is the entity in charge of resolving the location of an assembly and finding the
requested type within the binary by reading the contained metadata.
The CLR then lays out the type in memory, compiles the associated CIL into platform-
specific instructions, performs any necessary security checks, and then executes the
code in question.
Note: An assembler is a program that takes basic computer instructions and converts them into a pattern of bits that the
computer's processor can use to perform its basic operations. Some people call these instructions assembler language and
others use the term assembly language.
Eg: L 8,3000
Means: Load the contents of memory location 3000 into Register 8.
4. 4
C# Fundamentals
C# classes & Objects
Defining Classes and Creating Objects
A class is a definition for a user-defined type.
An object is simply a term describing a given instance of a particular class in memory.
Eg:
using System;
class HelloClass {
public static int Main(string[] args) {
// You can declare and create a new object in a single line...
HelloClass c1 = new HelloClass();
// ...or break declaration and creation into two lines.
HelloClass c2;
c2 = new HelloClass();
...
} }
Default Values of Class Member Variables
Boolean types are set to false.
Numeric data is set to 0 (or 0.0 in the case of floating-point data types).
String types are set to null.
Char types are set to '0'.
Reference types are set to null.
String Formatting
The C# string keyword is a shorthand notation of the System.String type, which provides a
number of members you would expect from such a utility class
5. 5
Types
There are basically 5 types in c#.
1. Classes
2. Structures
3. Interfaces
4. Enumerations
5. Delegates
Structures
A struct type is a value type that is typically used to encapsulate small groups of related
variables, such as the coordinates of a rectangle or the characteristics of an item in an
inventory
public struct Book
{
public decimal price;
public string title;
public string author;
}
The objects of a strcut can be created by using the new operator as follows.
book myBooks = new book();
The individual members of a struct can be accessed by using the dot (.) operator as showing
below.
myBooks.title= “who cares”;
myBooks.author = “Walking Stone”;
Interface
An interface contains only the signatures of methods, properties, events or indexers.
A class or struct that implements the interface must implement the members of the
interface that are specified in the interface definition
interface ISampleInterface {
void SampleMethod();
}
class ImplementationClass : ISampleInterface {
// Explicit interface member implementation:
void ISampleInterface.SampleMethod() {
// Method implementation.
}
Public static void Main() {
// Declare an interface instance.
ISampleInterface obj = new ImplementationClass();
// Call the member.
obj.SampleMethod(); } }
6. 6
Enumerations
The enum keyword is used to declare an enumeration, a distinct type that consists of a set
of named constants called the enumerator list.
By default, the first enumerator has the value 0, and the value of each successive
enumerator is increased by 1. For example, in the following enumeration, Sat is 0, Sun is 1,
Mon is 2, and so forth.
enum Days {Sat, Sun, Mon, Tue, Wed, Thu, Fri};
Enumerators can use initializers to override the default values, as shown in the following
example.
enum Days {Sat=1, Sun, Mon, Tue, Wed, Thu, Fri};
Delegates
A 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 signature and return type. You can invoke (or call) the method through the
delegate instance
public delegate int PerformCalculation(int x, int y);
Delegates have the following properties:
Delegates are like C++ function pointers but are type safe.
Delegates allow methods to be passed as parameters.
Delegates can be used to define callback methods.
Delegates can be chained together; for example, multiple methods can be called on
a single event.
Scopes
The scope of a name is the region of program text within which it is possible to refer to the entity
declared by the name without qualification of the name
The scope of a namespace member declared by a namespace-member-declaration with no
enclosing namespace-declaration is the entire program text.
The scope of a parameter declared in a constructor-declaration is the constructor-initializer
and block of that constructor-declaration.
The scope of a local variable declared in a local-variable-declaration is the block in which the
declaration occurs.
The scope of a local variable declared in a switch-block of a switch statement is the switch-
block.
The scope of a local variable declared in a for-initializer of a for statement is the for-
initializer, the for-condition, the for-iterator, and the contained statement of the for
statement.
The scope of a parameter declared in a method-declaration is the method-body of that
method-declaration.
The scope of a member declared by a struct-member-declaration is the struct-body in which
the declaration occurs.
The scope of a member declared by an enum-member-declaration is the enum-body in
which the declaration occurs.
7. 7
Constants
Constants are immutable(unchanging over time) values which are known at compile
time and do not change for the life of the program.
Constants are declared with the const modifier.
Only the C# built-in types(eg, int, float, string etc) may be declared as const.
Eg:
class Calendar
{
const int months = 12, weeks = 52, days = 365;
}
C# iteration
The following keywords are used in iteration statements:
do
for
foreach
while
foreach: The foreach statement repeats a group of embedded statements for each element in an
array or an object collection
Control Flow
if
switch
break
continue
Operators
Arithmetic Operators( +, -, *, /, %, ++, --)
Relational Operators (==, !=, >, <, >=, <= )
Logical Operators (&&, ||, !)
Bitwise Operators (&, |, ^, ~, <<, >>)
Assignment Operators (==, +=, -=, *=, /=, %=, <<=, >>=, &=, ^=, |=)
Misc Operators (sizeof(), typeof(), &-returns address of variable, *-pointer, ?: , is, as)
Arrays
C# arrays can be divided into 4 categories:
1. Single-dimensional arrays
2. Multidimensional arrays or rectangular arrays
3. Jagged arrays
4. Mixed arrays.
8. 8
1. Single-dimensional arrays:
int[] myNum = new int[3] {1, 3, 5};
string[] strArray = new string[5] { "Mahesh", "Mike", "Raj", "Praveen", "Dinesh" };
2. Multidimensional arrays or rectangular arrays:
A multi-dimensional array, also known as a rectangular array is an array with more than one
dimension. The form of a multi-dimensional array is a matrix.
int[,] numbers = new int[3, 2] { { 1, 2 }, { 3, 4 }, { 5, 6 } };
string[,] names = new string[2, 2] { { "Rosy", "Amy" }, { "Peter", "Albert" } };
We can also initialize as :
int[,] numbers = new int[3, 2];
numbers[0, 0] = 1;
numbers[1, 0] = 2;
3. Jagged arrays
Jagged arrays are arrays of arrays. The elements of a jagged array are other arrays.
For example, the following code snippet declares a jagged array that has three items of an
array.
int[ ][ ] intJaggedArray = new int[3][ ];
Initializing jagged arrays:
intJaggedArray[0] = new int[2];
intJaggedArray[1] = new int[4];
intJaggedArray[2] = new int[6];
We can also initialize as:
intJaggedArray[0] = new int[2]{2, 12};
intJaggedArray[1] = new int[4]{4, 14, 24, 34};
intJaggedArray[2] = new int[6] {6, 16, 26, 36, 46, 56 };
Accessing Jagged arrays:
Console.Write(intJaggedArray3[0][0]);
4. Mixed arrays
Mixed arrays are a combination of multi-dimension arrays and jagged arrays. The mixed
arrays type is removed from .NET 4.0.
9. 9
Strings
A string is an object of type String whose value is text.
Internally, the text is stored as a sequential read-only collection of Char objects.
There is no null-terminating character at the end of a C# string;
string name=”David”;
String escape sequences
t - Horizontal tab
v - Vertical tab
- Backslash
' - Single quote
" - Double quote
n - New line
Custom Namespaces
Custom namespace allows us to define our own namespaces and import them
into another program or application.
Eg:
// addtionlib.cs
using System;
namespace MyAddition
{
class addit{
………
}
}
myprogram.cs
using System;
using MyAddition //importing user-defined namespace
namespace myprogram
{
…….
}
}