UNIT I An overview of Programming models Programmers Perspective

Size: px
Start display at page:

Download "UNIT I An overview of Programming models Programmers Perspective"

Transcription

1 UNIT I An overview of Programming models Programmers Perspective 1. C/Win32 API Programmer It is complex C is short/abrupt language Manual Memory Management, Ugly Pointer arithmetic, ugly syntactic constructs Not a object oriented language 2. C++/MFC Programmer (Microsoft Foundation Classes) Object oriented layer on top of C C++ with MFC is still complex & error-prone. 3. Visual Basic (VB) Programmer Not a complete oriented OOP (Doesn t support inheritance) No multithreading No parameterized classes Low level API calls are complex 4. Java/J2EE Programmer Use of Java front to back during development cycle No language freedom Pure java is not suitable for graphic intense application (EX:30) No cross-language integration 5. as a COM (Component Object Model) Programmer Complex creation of COM types Active template library Forced to contend with fragile registration entries Deployment Issues 6. as a DNA Programmer (Distributed internet Applications Architecture)

2 .NET Framework VB C++ C# JavaScript J# Common Language Specification ASP.NET (Web forms Web Services) CTS Windows Forms.NET and XML Base Class Library Common language runtime(clr) Operating System CLS VISUAL STUDIO.NET Common Language Runtime (CLR) The CLR, the virtual machine component of Microsoft.NET framework, manages the execution of.net Programs. It runs the code and provides services that make the development process easier CLR Handles Runtime objects Memory leaks (Garbage Collection) Programming errors Performance improvements Ability to easily use components developed in other languages Explicit free threading to support(multi threading and scalable applications) Use delegates instead of function pointers for increased type safety and security, code verification CLR sits on top of OS Code is managed(writes in.net framework) or unmanaged(cannot be hosted on.net framework)

3 .NET Source Code (Any.NET Langauage) Any.NET Compiler *.dll or *.exe Assembly (CJL, Metadata, Manifest).NET Execution (mscore.dll) Base Class Libraries (mscorlib.dll) etc. Class Loader Jitter Platform Specific Instructions Member Execution CLR is physically represented by a library called mscoree.dll (Microsoft Common Object Runtime Execution Engine). When an assembly (.dll (dynamic linking library) or.exe) is in use, mscoree.dll is loaded automatically which in turn loads the required assembly into memory. CLR will also interact with the types contained with.net base class libraries when required for example (mscorlib.dll) mscorlib.dll contains a large number of core types that encapsulate a wide variety of common programming tasks as well as the core data types used by all all.net languages

4 Jitter compiles CIL(Common Intermediate Language or IL, MSIL) instructions on the fly into corresponding machine code and cache it. This is useful for not recompiling, if the same method is called again. CIL is not in a binary format. Desktop CJL JIT Server Packet PC Base Class Library Support Thread support COM Marshall Type Checker Exception Manager Security Engine Debug Engine IL to native compilers Code Manager Garbage Collection Class Loader

5 Common Language Specification It is set of guidelines that describe the minimal and complete set of features a given.net aware compiler must support. C# uses + for concatenation whereas VB users &. C# allows operator overloading but VB does not allow. The void functions may differ in syntax. VB. NET Public Sub Foo().. End Sub C#.NET Public void Foo() CLS Compliance byte short int long float double object string char bool CLS Non-Compliance sbyte ulong uint ushort CLS rules apply to those parts of a type that are exposed outside the defining assembly. Ex 1. public class calc public ulong Add(ulong x, ulong y) //Not CLS Complaint return x+y;

6 Ex 2. Using system; [assembly : CLSComplaint(ture)] public class visible public sbyte x() return 0; // not CLS-compliant Error by the compiler Using system; [assembly : CLSComplaint(ture) public class visible [CLS Complaint(false)] public sbyte x() return 0; // no error by (An Assembly (.dll) is generated).net framework is that applications written in different languages can interoperate with one another only if it adheres to set of 41 rules knows as common language specification (CLS) standardized by European Computer Manufacturers Association (ECMA). Common Type Systems The common type system defines how types are declared, used and managed in the common language runtime and is also an important part of the runtimes support for cross-language integration. Functions of CTS Establishes a framework that helps enable cross-language integration, type safety and high performance code execution. Provides object-oriented model that supports the complete implementation of many programming languages Defines rules that languages must follow, which helps ensure that objects written in different languages can interact with each other. Provides a library that contains the primitive data types (ex: Boolean, Byte, Char, Int32 & UInt64) used in application development.

7 Types:.NET Classifies the types either as value types or reference types. 1. Values Types are data types whose objects are represented by the objects actual value. If an instance of a value type is assigned to a variable, that variable is given a fresh copy of the value. All value types are derived implicitly from System.ValuType. Ex: Structures, Enumerations 2. Reference types are data types whose objects are represented by a reference to the objects actual value. No copy is made. Ex : Classes, Delegates. CTS-Class Types A class is a reference type and is derived implicitly from System.Object. A class may be composed of any number of members (methods, events and properties) and the data that object contains (fields). Although, class generally includes both definition and implementation (unlike interface), it can have one or more members that have no implementation. public class add public int Addition(int x, int y) return x+y;

8 Characteristics of a class 1. Visibility: This feature indicates whether a class is visible outside the assembly in which it is defined. However this is applied only to top level classes but not to the nested classes. 2. Concrete/ Abstract: Concrete type classes can be created directly. On the other hand abstract classes cannot be derived or instantiated. In order to use the features of abstract class one must derive another class from it. 3. Implements: this indicates whether the classes uses either one or more interfaces by providing implementation details of the interface members. 4. Sealed: This feature make the class as a non-derivable class. No class can inherit the sealed class at any point of time. CTS-Structure Types: A structure is a value type that derives implicitly from System.ValueType, which in turn is derived from System.Object. A structure is very useful for representing values whose memory requirements are small, and for passing values as by-value parameters to methods that have strongly typed parameters. Ex: All primitive data types in.net framework class library are defined as structures. Boolean, Byte, Char, DateTime, Decimal, Double, Int16, Int32, Int64, SByte, Single, UInt16, UInt64, UInt32. Structures can have fields, properties and events as well as static and nonstatic methods. You can create instances of structures, pass them as parameters, store them as local variables or store them in a field of another value type or reference type. Structures can also implement interfaces

9 struct point public int xpos, ypos; public point(int x, int y) xpos = x; ypos = y; public void Display() Console.WriteLine("0,1", xpos, ypos); CTS-Enumeration Types An enumeration is a value type which allows the programmers to group name/value pairs. It is inherited directly from System.Enum. Enumerations are generally used for lists of unique elements such as days of the week, country or region names etc., Ex: public enum days sunday =0, monday =1, tuesday =2 Restrictions on Enumerations They cannot define their own methods They cannot implement interfaces They cannot define properties/events They cannot be generic (i.e., they cannot have type parameters of its own). The approved enum types are byte, sbyte, short, ushort, int, uint, long or ulong. CTS-Interface Types Interfaces define Can do relationship or has a relationship. Interfaces can have properties, methods and events all of which are

10 abstract members. Interfaces cannot define constructors, fields. They can define only instance members, non-static members. public interface IDraw void Draw() CTS-Delegate Type Delegates are reference types that serve a purpose similar to that of function pointers in c++/ they are used for event handlers and callback functions in the.net framework. Unlike function pointers, delegates are typesafe, secure and verifiable. public delegate int BinaryOp(int x, int y); C# Intrinsic CTS Data Types

11 .NET Assembly All windows applications have dependencies on one or more dll s (Dynamic Linking Libraries). These dll s may contain COM (Component Object Model) classes registered in the system registry. When these components are updated, applications may break this situation is termed as ( DLL Hell ). To overcome the above Microsoft introduced.net Assemblies. C#.NET compiler does not guarantee machine code. it is always compiled into assembly. Intermediate Language (IL) is like first pass of a compiler which is not in a binary format. All.NET compilers emit IL instructions and metadata. C# Source Code C# Compiler Perl.NET VB.NET Perl. NET Compiler VB Compiler IL And Metadata (*.dll & *.exe) Assembly Metadata It describes the assembly contents No need for component registry Each assembly includes information about references to other assemblies Ex: if you have an employee class in a given assembly the metadata describes Employee base class Which interfaces it implemented Members description Apart form CIL and Metadata, aseemblies themselves are also described using metadata called as manifest. It holds the following information Assembly Name Version Number(Major/Minor/Build/Revision) Culture( the language the assembly supports)

12 Strong Name Information List of Files in Assembly Type Reference information Information on the referenced assemblies Types of Assemblies Single-File/Private Assembly: Used by single application It is not shared Most preferred method Multi-file/Shared Assembly Used/designed for multiple applications Global Assembly Cache Note: The files of multifile assembly are not physically linked by the file system. All these files are linked through the assembly manifest and CLR treats them as a unit.

13 Features of C# 1. No pointers are required. C# programs typically have no need for direct pointer manipulation. 2. Automatic memory management through garbage collection. C# does not support delete keyword. 3. C# supports syntactic constructs for enumerations, structures and class properties. 4. Operator over loading is allowed for a custom type. 5. Building generic types and generic members syntax is similar to C It support interface-based programming. 7. Also supports aspect-oriented programming(allows to further qualify the behaviour of types and their members) technique via attributes. C#- Command-Line Compiler (csc.exe) Compiles File.cs producing File.exe: csc File.cs Compiles File.cs producing File.dll: csc /target:library File.cs Compiles File.cs and creates My.exe: csc /out:my.exe File.cs Compiles all the C# files in the current directory, with optimizations on and defines the DEBUG symbol. The output is File2.exe: csc /define:debug /optimize /out:file2.exe *.cs Compiles all the C# files in the current directory producing a debug version of File2.dll. No logo and no warnings are displayed: csc /target:library /out:file2.dll /warn:0 /nologo /debug *.cs

14 Compiles all the C# files in the current directory to Something.xyz (a DLL): csc /target:library /out:something.xyz *.cs Referencing External Assemblies using System.Windows.Forms; class TestApp public static void Main() Console.WriteLine( Testing! 1, 2, 3 ); //Add this! MessageBox.Show( Hello ); During Compilation csc /r:system.windows.forms.dll testapp.cs Compiling Multiple Source Files with csc.exe csc /r:system.windows.forms.dll testapp.cs hellomsg.cs

15 csc.exe response files A file that lists compiler options or source code files to compile. The compiler options and source code files will be processed by the compiler just as if they had been specified on the command line. To specify more than one response file in a compilation, specify multiple response file options. In a response file, multiple compiler options and source code files can appear on one line. A single compiler option specification must appear on one line (cannot span multiple lines). Response files can have comments that begin with the # symbol. The compiler processes the command options as they are encountered. Therefore, command line arguments can override previously listed options in response files. Conversely, options in a response file will override options listed previously on the command line or in other response files. The compiler processes the command options as they are encountered. Therefore, command line arguments can override previously listed options in response files. Conversely, options in a response file will override options listed previously on the command line or in other response files. # build the first output file /target:exe /out:myexe.exe source1.cs source2.cs

16 Command Line Debugger The Runtime Debugger helps tools vendors and application developers find and fix bugs in programs that target the.net Framework common language runtime. This tool uses the runtime Debug API to provide debugging services. The source code for Cordbg.exe is being shipped as a sample application. Developers can examine the code to learn how to use the debugging services. Currently, you can only use Cordbg.exe to debug managed code; there is no support for debugging unmanaged code. When you start a debugging session from the command line, you can also provide the name of the application you want to debug, program arguments, and optional arguments. The Cordbg.exe optional arguments are the same commands that you would use while in Cordbg.exe but you must prefix them with the exclamation point (!) character. You can use the! character as a literal in a string by prefixing it with the backslash (\) character If a numeric argument to a command begins with the prefix 0x, Cordbg.exe assumes the argument is in hexadecimal format. Otherwise, it assumes the argument is in decimal format Flags b[reak] del[ete] ex[it] g[0] o[ut] p[rint] si so Set or display current breakpoints Remove one or more breakpoints Exit the debugger Continue debugging the current process until hitting next breakpoint Step out of the current function Print all loaded variables local, arguments etc., Step into next line Step over the next line Running an executable inside a Cordbg.exe session The following command entered from within a Cordbg.exe session (at the (cordbg) prompt) runs the executable MyApplication.exe with the program arguments a and 2. run MyApplication.exe a 2

17 Using the print command The following commands demonstrate that you can use dot notation with the print command to specify variables within objects. print obj.var1 print obj1.obj2.var1 Ildasm.exe The Ildasm.exe parses any.net Framework.exe or.dll assembly, and shows the information in human-readable format. Ildasm.exe shows more than just the Microsoft intermediate language (MSIL) code it also displays namespaces and types, including their interfaces. You can use Ildasm.exe to examine native.net Framework assemblies, such as Mscorlib.dll, as well as.net Framework assemblies provided by others or created yourself. Most.NET Framework developers will find Ildasm.exe indispensable To get started, build the WordCount sample, and load it into Ildasm.exe using the following command line: ildasm WordCount.exe You can see that the WordCounter type contains five private fields: totalbytes, totalchars, totallines, totalwords, and wordcounter. The first four of these fields are instances of the int64 type, while the wordcounter field is a reference to a System.Collections.SortedList type.

18

INTERNAL ASSESSMENT TEST 1 ANSWER KEY

INTERNAL ASSESSMENT TEST 1 ANSWER KEY INTERNAL ASSESSMENT TEST 1 ANSWER KEY Subject & Code: C# Programming and.net-101s761 Name of the faculty: Ms. Pragya Q.No Questions 1 a) What is an assembly? Explain each component of an assembly. Answers:-

More information

PES INSTITUTE OF TECHNOLOGY

PES INSTITUTE OF TECHNOLOGY Seventh Semester B.E. IA Test-I, 2014 USN 1 P E I S PES INSTITUTE OF TECHNOLOGY C# solution set for T1 Answer any 5 of the Following Questions 1) What is.net? With a neat diagram explain the important

More information

Chapter 12 Microsoft Assemblies. Software Architecture Microsoft Assemblies 1

Chapter 12 Microsoft Assemblies. Software Architecture Microsoft Assemblies 1 Chapter 12 Microsoft Assemblies 1 Process Phases Discussed in This Chapter Requirements Analysis Design Framework Architecture Detailed Design Key: x = main emphasis x = secondary emphasis Implementation

More information

vtuplanet.com C#Programming with.net C# Programming With.NET (06CS/IS761)

vtuplanet.com C#Programming with.net C# Programming With.NET (06CS/IS761) C# Programming With.NET (06CS/IS761) Chapter wise questions and Answers appeared in previous years: UNIT I: 1 Philosophy of the.net What are the building blocks of.net platform? Give the relationship between.net

More information

New programming language introduced by Microsoft contained in its.net technology Uses many of the best features of C++, Java, Visual Basic, and other

New programming language introduced by Microsoft contained in its.net technology Uses many of the best features of C++, Java, Visual Basic, and other C#.NET? New programming language introduced by Microsoft contained in its.net technology Uses many of the best features of C++, Java, Visual Basic, and other OO languages. Small learning curve from either

More information

Module 2: Introduction to a Managed Execution Environment

Module 2: Introduction to a Managed Execution Environment Module 2: Introduction to a Managed Execution Environment Contents Overview 1 Writing a.net Application 2 Compiling and Running a.net Application 11 Lab 2: Building a Simple.NET Application 29 Review 32

More information

Introduce C# as Object Oriented programming language. Explain, tokens,

Introduce C# as Object Oriented programming language. Explain, tokens, Module 2 98 Assignment 1 Introduce C# as Object Oriented programming language. Explain, tokens, lexicals and control flow constructs. 99 The C# Family Tree C Platform Independence C++ Object Orientation

More information

.Net Technologies. Components of.net Framework

.Net Technologies. Components of.net Framework .Net Technologies Components of.net Framework There are many articles are available in the web on this topic; I just want to add one more article over the web by explaining Components of.net Framework.

More information

C++\CLI. Jim Fawcett CSE687-OnLine Object Oriented Design Summer 2017

C++\CLI. Jim Fawcett CSE687-OnLine Object Oriented Design Summer 2017 C++\CLI Jim Fawcett CSE687-OnLine Object Oriented Design Summer 2017 Comparison of Object Models Standard C++ Object Model All objects share a rich memory model: Static, stack, and heap Rich object life-time

More information

Introduction to.net, C#, and Visual Studio. Part I. Administrivia. Administrivia. Course Structure. Final Project. Part II. What is.net?

Introduction to.net, C#, and Visual Studio. Part I. Administrivia. Administrivia. Course Structure. Final Project. Part II. What is.net? Introduction to.net, C#, and Visual Studio C# Programming Part I Administrivia January 8 Administrivia Course Structure When: Wednesdays 10 11am (and a few Mondays as needed) Where: Moore 100B This lab

More information

C#.Net. Course Contents. Course contents VT BizTalk. No exam, but laborations

C#.Net. Course Contents. Course contents VT BizTalk. No exam, but laborations , 1 C#.Net VT 2009 Course Contents C# 6 hp approx. BizTalk 1,5 hp approx. No exam, but laborations Course contents Architecture Visual Studio Syntax Classes Forms Class Libraries Inheritance Other C# essentials

More information

UNIT-1 The Philosophy of.net

UNIT-1 The Philosophy of.net 1 UNIT-1 The Philosophy of.net Understanding the Previous State of Affairs Life As a C/Win32 API Programmer: Developing software for the Windows family of operating systems involved using the C programming

More information

Introduction to Programming Using Java (98-388)

Introduction to Programming Using Java (98-388) Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;

More information

Chapter 1:- Introduction to.net. Compiled By:- Ankit Shah Assistant Professor, SVBIT.

Chapter 1:- Introduction to.net. Compiled By:- Ankit Shah Assistant Professor, SVBIT. Chapter 1:- Introduction to.net Compiled By:- Assistant Professor, SVBIT. What is.net? 2 Microsoft s vision of the future of applications in the Internet age Increased robustness over classic Windows apps

More information

Hierarchical inheritance: Contains one base class and multiple derived classes of the same base class.

Hierarchical inheritance: Contains one base class and multiple derived classes of the same base class. 1. What is C#? C# (pronounced "C sharp") is a simple, modern, object oriented, and type safe programming language. It will immediately be familiar to C and C++ programmers. C# combines the high productivity

More information

C#: framework overview and in-the-small features

C#: framework overview and in-the-small features Chair of Software Engineering Carlo A. Furia, Marco Piccioni, Bertrand Meyer C#: framework overview and in-the-small features Chair of Software Engineering Carlo A. Furia, Marco Piccioni, Bertrand Meyer

More information

Appendix G: Writing Managed C++ Code for the.net Framework

Appendix G: Writing Managed C++ Code for the.net Framework Appendix G: Writing Managed C++ Code for the.net Framework What Is.NET?.NET is a powerful object-oriented computing platform designed by Microsoft. In addition to providing traditional software development

More information

Introduction to.net Framework Week 1. Tahir Nawaz

Introduction to.net Framework Week 1. Tahir Nawaz Introduction to.net Framework Week 1 Tahir Nawaz .NET What Is It? Software platform Language neutral In other words:.net is not a language (Runtime and a library for writing and executing written programs

More information

Introduction to.net Framework

Introduction to.net Framework Introduction to.net Framework .NET What Is It? Software platform Language neutral In other words:.net is not a language (Runtime and a library for writing and executing written programs in any compliant

More information

This lecture notes is prepared according to the syllabus of the following subjects

This lecture notes is prepared according to the syllabus of the following subjects 1 This lecture notes is prepared according to the syllabus of the following subjects C# Programming and.net (10IS761), a 7 th semester BE Information Science and Engineering syllabus according to 2010

More information

Objective of the Course: (Why the course?) Brief Course outline: (Main headings only) C# Question Bank Chapter1: Philosophy of.net

Objective of the Course: (Why the course?) Brief Course outline: (Main headings only) C# Question Bank Chapter1: Philosophy of.net Objective of the Course: (Why the course?) To provide a brief introduction to the.net platform and C# programming language constructs. Enlighten the students about object oriented programming, Exception

More information

University of West Bohemia in Pilsen. Faculty of Applied Sciences. Department of Computer Science and Engineering DIPLOMA THESIS

University of West Bohemia in Pilsen. Faculty of Applied Sciences. Department of Computer Science and Engineering DIPLOMA THESIS University of West Bohemia in Pilsen Faculty of Applied Sciences Department of Computer Science and Engineering DIPLOMA THESIS Pilsen, 2003 Ivo Hanák University of West Bohemia in Pilsen Faculty of Applied

More information

EEE-425 Programming Languages (2013) 1

EEE-425 Programming Languages (2013) 1 2 Computer programming: creating a sequence of instructions to enable the computer to do something Programmers do not use machine language when creating computer programs. Instead, programmers tend to

More information

A NET Refresher

A NET Refresher .NET Refresher.NET is the latest version of the component-based architecture that Microsoft has been developing for a number of years to support its applications and operating systems. As the name suggests,.net

More information

Darshan Institute of Engineering & Technology for Diploma Studies

Darshan Institute of Engineering & Technology for Diploma Studies Overview of Microsoft.Net Framework: The Dot Net or.net is a technology that is an outcome of Microsoft s new strategy to develop window based robust applications and rich web applications and to keep

More information

C# Syllabus. MS.NET Framework Introduction

C# Syllabus. MS.NET Framework Introduction C# Syllabus MS.NET Framework Introduction The.NET Framework - an Overview Framework Components Framework Versions Types of Applications which can be developed using MS.NET MS.NET Base Class Library MS.NET

More information

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.)

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.) INTRODUCTION TO.NET Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In-

More information

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio Introduction XXV Part I: C# Fundamentals 1 Chapter 1: The.NET Framework 3 What s the.net Framework? 3 Common Language Runtime 3.NET Framework Class Library 4 Assemblies and the Microsoft Intermediate Language

More information

.Net Interview Questions

.Net Interview Questions .Net Interview Questions 1.What is.net? NET is an integral part of many applications running on Windows and provides common functionality for those applications to run. This download is for people who

More information

DOT NET Syllabus (6 Months)

DOT NET Syllabus (6 Months) DOT NET Syllabus (6 Months) THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In- Time Compilation and CLS Disassembling.Net Application to IL

More information

Short Notes of CS201

Short Notes of CS201 #includes: Short Notes of CS201 The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with < and > if the file is a system

More information

Saikat Banerjee Page 1

Saikat Banerjee Page 1 1.What is.net? NET is an integral part of many applications running on Windows and provides common functionality for those applications to run. This download is for people who need.net to run an application

More information

CS201 - Introduction to Programming Glossary By

CS201 - Introduction to Programming Glossary By CS201 - Introduction to Programming Glossary By #include : The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with

More information

Introduction to.net. What is.net?

Introduction to.net. What is.net? Introduction to.net What is.net? Microsoft s vision of the future of applications in the Internet age Increased robustness over classic Windows apps New programming platform Built for the web.net is a

More information

BUILDING C# APPLICATIONS

BUILDING C# APPLICATIONS BUILDING C# APPLICATIONS The C# Command-Line Compiler (csc.exe) Configuring the C# Command-Line Compiler To equip your development machine to compile *.cs files from any directory, follow these steps (which

More information

C# Programming in the.net Framework

C# Programming in the.net Framework 50150B - Version: 2.1 04 May 2018 C# Programming in the.net Framework C# Programming in the.net Framework 50150B - Version: 2.1 6 days Course Description: This six-day instructor-led course provides students

More information

Department of Computer Applications

Department of Computer Applications MCA 512:.NET framework and C# [Part I : Medium Answer type Questions] Unit - 1 Q1. What different tools are available and used to develop.net Applications? Hint a).net Framework SDK b) ASP.NET Web Matrix

More information

UNIT 1. Introduction to Microsoft.NET framework and Basics of VB.Net

UNIT 1. Introduction to Microsoft.NET framework and Basics of VB.Net UNIT 1 Introduction to Microsoft.NET framework and Basics of VB.Net 1 SYLLABUS 1.1 Overview of Microsoft.NET Framework 1.2 The.NET Framework components 1.3 The Common Language Runtime (CLR) Environment

More information

Introduction To C#.NET

Introduction To C#.NET Introduction To C#.NET Microsoft.Net was formerly known as Next Generation Windows Services(NGWS).It is a completely new platform for developing the next generation of windows/web applications. However

More information

Microsoft..NET Framework. Overview

Microsoft..NET Framework. Overview Microsoft.NET Framework Overview .NET Enterprise Vision Users Any device, Any place, Any time XML Web Services Scheduling Authentication Integrate business applications and processes Notification Back

More information

UNIT I INTRODUCTION TO C#

UNIT I INTRODUCTION TO C# UNIT I INTRODUCTION TO C# Syllabus: Introducing C#, Understanding.NET, Overview of C#, Literals, Variables, Data Types, Operators, Expressions, Branching, Looping, Methods, Arrays, Strings, Structures,

More information

Trusted Components. Reuse, Contracts and Patterns. Prof. Dr. Bertrand Meyer Dr. Karine Arnout

Trusted Components. Reuse, Contracts and Patterns. Prof. Dr. Bertrand Meyer Dr. Karine Arnout 1 Last update: 2 November 2004 Trusted Components Reuse, Contracts and Patterns Prof. Dr. Bertrand Meyer Dr. Karine Arnout 2 Lecture 26: Component model: The.NET example Agenda for today 3 What is.net?

More information

Assemblies. necessary and sufficient to make that file self describing. This unit is called Assembly.

Assemblies. necessary and sufficient to make that file self describing. This unit is called Assembly. Assemblies Any.NET application written by a developer may be a component that is designed to provide some service to other applications or itself a main application. In both cases when that.net application

More information

.Net. Course Content ASP.NET

.Net. Course Content ASP.NET .Net Course Content ASP.NET INTRO TO WEB TECHNOLOGIES HTML ü Client side scripting langs ü lls Architecture ASP.NET INTRODUCTION ü What is ASP.NET ü Image Technique and code behind technique SERVER SIDE

More information

Expert C++/CLI:.NET for Visual C++ Programmers

Expert C++/CLI:.NET for Visual C++ Programmers Expert C++/CLI:.NET for Visual C++ Programmers Marcus Heege Contents About the Author About the Technical Reviewer Acknowledgments xiii xv xvii CHAPTER 1 Why C++/CLI? 1 Extending C++ with.net Features

More information

The Microsoft.NET Framework

The Microsoft.NET Framework Microsoft Visual Studio 2005/2008 and the.net Framework The Microsoft.NET Framework The Common Language Runtime Common Language Specification Programming Languages C#, Visual Basic, C++, lots of others

More information

.NET-6Weeks Project Based Training

.NET-6Weeks Project Based Training .NET-6Weeks Project Based Training Core Topics 1. C# 2. MS.Net 3. ASP.NET 4. 1 Project MS.NET MS.NET Framework The.NET Framework - an Overview Architecture of.net Framework Types of Applications which

More information

CHAPTER 2: BUILDING C# APPLICATIONS

CHAPTER 2: BUILDING C# APPLICATIONS CHAPTER 2: BUILDING C# APPLICATIONS BUILDING A C# APPLICATION USING csc.exe Consider the following code: using System; class TestApp public static void Main() Console.WriteLine("Testing 1 2 3"); Once you

More information

Chapter 1 Getting Started

Chapter 1 Getting Started Chapter 1 Getting Started The C# class Just like all object oriented programming languages, C# supports the concept of a class. A class is a little like a data structure in that it aggregates different

More information

IT 528 Developing.NET Applications Using C# Gülşen Demiröz

IT 528 Developing.NET Applications Using C# Gülşen Demiröz IT 528 Developing.NET Applications Using C# Gülşen Demiröz Summary of the Course Hands-on applications programming course We will learn how to develop applications using the C# programming language on

More information

Introduction to Programming Microsoft.NET Applications with Visual Studio 2008 (C#)

Introduction to Programming Microsoft.NET Applications with Visual Studio 2008 (C#) Introduction to Programming Microsoft.NET Applications with Visual Studio 2008 (C#) Course Number: 6367A Course Length: 3 Days Course Overview This three-day course will enable students to start designing

More information

DAD Lab. 1 Introduc7on to C#

DAD Lab. 1 Introduc7on to C# DAD 2017-18 Lab. 1 Introduc7on to C# Summary 1..NET Framework Architecture 2. C# Language Syntax C# vs. Java vs C++ 3. IDE: MS Visual Studio Tools Console and WinForm Applica7ons 1..NET Framework Introduc7on

More information

S.Sakthi Vinayagam Sr. AP/CSE, C.Arun AP/IT

S.Sakthi Vinayagam Sr. AP/CSE, C.Arun AP/IT Chettinad College of Engineering & Technology CS2014 C# &.NET Framework Part A Questions Unit I 1. Define Namespace. What are the uses of Namespace? A namespace is designed for providing a way to keep

More information

Getting started 7. Storing values 21. Creating variables 22 Reading input 24 Employing arrays 26 Casting data types 28 Fixing constants 30 Summary 32

Getting started 7. Storing values 21. Creating variables 22 Reading input 24 Employing arrays 26 Casting data types 28 Fixing constants 30 Summary 32 Contents 1 2 3 Contents Getting started 7 Introducing C# 8 Installing Visual Studio 10 Exploring the IDE 12 Starting a Console project 14 Writing your first program 16 Following the rules 18 Summary 20

More information

Microsoft.NET Programming (C#, ASP.NET,ADO.NET, VB.NET, Crystal Report, Sql Server) Goal: Make the learner proficient in the usage of MS Technologies

Microsoft.NET Programming (C#, ASP.NET,ADO.NET, VB.NET, Crystal Report, Sql Server) Goal: Make the learner proficient in the usage of MS Technologies Microsoft.NET Programming (C#, ASP.NET,ADO.NET, VB.NET, Crystal Report, Sql Server) Goal: Make the learner proficient in the usage of MS Technologies for web applications development using ASP.NET, XML,

More information

2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a) and (b) D. stands for Graphic Use Interaction

2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a) and (b) D. stands for Graphic Use Interaction 1. Which language is not a true object-oriented programming language? A. VB 6 B. VB.NET C. JAVA D. C++ 2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a)

More information

Program Contents: DOTNET TRAINING IN CHENNAI

Program Contents: DOTNET TRAINING IN CHENNAI DOTNET TRAINING IN CHENNAI NET Framework - In today s world of enterprise application development either desktop or Web, one of leaders and visionary is Microsoft.NET technology. The.NET platform also

More information

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Course Number: 2555 Length: 1 Day(s) Certification Exam This course will help you prepare for the following Microsoft Certified Professional

More information

.NET. Inf 5040, Outline. Gyrd Brændeland, Sharath Babu Musunoori, Åshild Grønstad Solheim

.NET. Inf 5040, Outline. Gyrd Brændeland, Sharath Babu Musunoori, Åshild Grønstad Solheim .NET Inf 5040, 02.11.04 Gyrd Brændeland, Sharath Babu Musunoori, Åshild Grønstad Solheim Outline Introduction An overview of.net framework architecture More focus on.net core components.net features Web

More information

Dot Net Online Training

Dot Net Online Training chakraitsolutions.com http://chakraitsolutions.com/dotnet-online-training/ Dot Net Online Training DOT NET Online Training CHAKRA IT SOLUTIONS TO LEARN ABOUT OUR UNIQUE TRAINING PROCESS: Title : Dot Net

More information

Question No: 1 ( Marks: 1 ) - Please choose one One difference LISP and PROLOG is. AI Puzzle Game All f the given

Question No: 1 ( Marks: 1 ) - Please choose one One difference LISP and PROLOG is. AI Puzzle Game All f the given MUHAMMAD FAISAL MIT 4 th Semester Al-Barq Campus (VGJW01) Gujranwala faisalgrw123@gmail.com MEGA File Solved MCQ s For Final TERM EXAMS CS508- Modern Programming Languages Question No: 1 ( Marks: 1 ) -

More information

Visual C# Instructor s Manual Table of Contents

Visual C# Instructor s Manual Table of Contents Visual C# 2005 2-1 Chapter 2 Using Data At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class Discussion Topics Additional Projects Additional Resources Key Terms

More information

C# 6.0 in a nutshell / Joseph Albahari & Ben Albahari. 6th ed. Beijin [etc.], cop Spis treści

C# 6.0 in a nutshell / Joseph Albahari & Ben Albahari. 6th ed. Beijin [etc.], cop Spis treści C# 6.0 in a nutshell / Joseph Albahari & Ben Albahari. 6th ed. Beijin [etc.], cop. 2016 Spis treści Preface xi 1. Introducing C# and the.net Framework 1 Object Orientation 1 Type Safety 2 Memory Management

More information

Object-Oriented Programming

Object-Oriented Programming Object-Oriented Programming 1. What is object-oriented programming (OOP)? OOP is a technique to develop logical modules, such as classes that contain properties, methods, fields, and events. An object

More information

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Course Number: 2565 Length: 5 Day(s) Certification Exam This course will help you prepare for the following Microsoft Certified Professional

More information

This web service can be available to any user on the internet regardless of who developed it.

This web service can be available to any user on the internet regardless of who developed it. The.NET strategy Microsoft wanted to make the WWW more vibrant by enabling individual devices, computers, and web services to work altogether intelligently to provide rich solutions to the user. With the

More information

Programming in Visual Basic with Microsoft Visual Studio 2010

Programming in Visual Basic with Microsoft Visual Studio 2010 Programming in Visual Basic with Microsoft Visual Studio 2010 Course 10550; 5 Days, Instructor-led Course Description This course teaches you Visual Basic language syntax, program structure, and implementation

More information

A Comparison of Visual Basic.NET and C#

A Comparison of Visual Basic.NET and C# Appendix B A Comparison of Visual Basic.NET and C# A NUMBER OF LANGUAGES work with the.net Framework. Microsoft is releasing the following four languages with its Visual Studio.NET product: C#, Visual

More information

Top 40.NET Interview Questions & Answers

Top 40.NET Interview Questions & Answers Top 40.NET Interview Questions & Answers 1) Explain what is.net Framework? The.Net Framework is developed by Microsoft. It provides technologies and tool that is required to build Networked Applications

More information

Creating and Running Your First C# Program

Creating and Running Your First C# Program Creating and Running Your First C# Program : http://eembdersler.wordpress.com Choose the EEE-425Programming Languages (Fall) Textbook reading schedule Pdf lecture notes Updated class syllabus Midterm and

More information

EEE-425 Programming Languages (2013) 1

EEE-425 Programming Languages (2013) 1 Creating and Running Your First C# Program : http://eembdersler.wordpress.com Choose the EEE-425Programming Languages (Fall) Textbook reading schedule Pdf lecture notes Updated class syllabus Midterm and

More information

An Introduction to.net for the J2EE Programmer

An Introduction to.net for the J2EE Programmer An Introduction to.net for the J2EE Programmer Jeroen Frijters Sumatra Software b.v. jeroen@sumatra.nl http://weblog.ikvm.net/ Page Overview.NET Framework overview and terminology A Quick Look at C# A

More information

This tutorial has been prepared for the beginners to help them understand basics of c# Programming.

This tutorial has been prepared for the beginners to help them understand basics of c# Programming. About thetutorial C# is a simple, modern, general-purpose, object-oriented programming language developed by Microsoft within its.net initiative led by Anders Hejlsberg. This tutorial covers basic C# programming

More information

Visual Studio.NET.NET Framework. Web Services Web Forms Windows Forms. Data and XML classes. Framework Base Classes. Common Language Runtime

Visual Studio.NET.NET Framework. Web Services Web Forms Windows Forms. Data and XML classes. Framework Base Classes. Common Language Runtime Intro C# Intro C# 1 Microsoft's.NET platform and Framework.NET Enterprise Servers Visual Studio.NET.NET Framework.NET Building Block Services Operating system on servers, desktop, and devices Web Services

More information

Introduction to C++/CLI 3. What C++/CLI can do for you 6 The rationale behind the new syntax Hello World in C++/CLI 13

Introduction to C++/CLI 3. What C++/CLI can do for you 6 The rationale behind the new syntax Hello World in C++/CLI 13 contents preface xv acknowledgments xvii about this book xix PART 1 THE C++/CLI LANGUAGE... 1 1 Introduction to C++/CLI 3 1.1 The role of C++/CLI 4 What C++/CLI can do for you 6 The rationale behind the

More information

PESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore

PESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore PESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore 560 100 Department of MCA COURSE INFORMATION SHEET Programming Using C#.NET (13MCA53) 1. GENERAL INFORMATION: Academic Year:

More information

B.E /B.TECH DEGREE EXAMINATIONS,

B.E /B.TECH DEGREE EXAMINATIONS, B.E /B.TECH DEGREE EXAMINATIONS, November / December 2012 Seventh Semester Computer Science and Engineering CS2041 C# AND.NET FRAMEWORK (Common to Information Technology) (Regulation 2008) Time : Three

More information

Unit 1: Visual Basic.NET and the.net Framework

Unit 1: Visual Basic.NET and the.net Framework 1 Chapter1: Visual Basic.NET and the.net Framework Unit 1: Visual Basic.NET and the.net Framework Contents Introduction to.net framework Features Common Language Runtime (CLR) Framework Class Library(FCL)

More information

Chapter 1 INTRODUCTION SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC.

Chapter 1 INTRODUCTION SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC. hapter 1 INTRODUTION SYS-ED/ OMPUTER EDUATION TEHNIQUES, IN. Objectives You will learn: Java features. Java and its associated components. Features of a Java application and applet. Java data types. Java

More information

Introducing C# and the.net Framework

Introducing C# and the.net Framework 1 Introducing C# and the.net Framework C# is a general-purpose, type-safe, object-oriented programming language. The goal of the language is programmer productivity. To this end, the language balances

More information

Uka Tarsadia University MCA ( 3rd Semester)/M.Sc.(CA) (1st Semester) Course : / Visual Programming Question Bank

Uka Tarsadia University MCA ( 3rd Semester)/M.Sc.(CA) (1st Semester) Course : / Visual Programming Question Bank Unit 1 Introduction to.net Platform Q: 1 Answer in short. 1. Which three main components are available in.net framework? 2. List any two new features added in.net framework 4.0 which is not available in

More information

Question And Answer.

Question And Answer. Q.1 What would be the output of the following program? using System; namespaceifta classdatatypes static void Main(string[] args) inti; Console.WriteLine("i is not used inthis program!"); A. i is not used

More information

PROGRAMMING IN VISUAL BASIC WITH MICROSOFT VISUAL STUDIO Course: 10550A; Duration: 5 Days; Instructor-led

PROGRAMMING IN VISUAL BASIC WITH MICROSOFT VISUAL STUDIO Course: 10550A; Duration: 5 Days; Instructor-led CENTER OF KNOWLEDGE, PATH TO SUCCESS Website: PROGRAMMING IN VISUAL BASIC WITH MICROSOFT VISUAL STUDIO 2010 Course: 10550A; Duration: 5 Days; Instructor-led WHAT YOU WILL LEARN This course teaches you

More information

NOIDATUT E Leaning Platform

NOIDATUT E Leaning Platform NOIDATUT E Leaning Platform Dot Net Framework Lab Manual COMPUTER SCIENCE AND ENGINEERING Presented by: NOIDATUT Email : e-learn@noidatut.com www.noidatut.com C SHARP 1. Program to display Hello World

More information

Course Hours

Course Hours Programming the.net Framework 4.0/4.5 with C# 5.0 Course 70240 40 Hours Microsoft's.NET Framework presents developers with unprecedented opportunities. From 'geoscalable' web applications to desktop and

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK B.E. - Electrical and Electronics Engineering IV SEMESTER CS6456 - OBJECT ORIENTED

More information

DOT NET SYLLABUS FOR 6 MONTHS

DOT NET SYLLABUS FOR 6 MONTHS DOT NET SYLLABUS FOR 6 MONTHS INTRODUCTION TO.NET Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate

More information

1. Introduction to the Common Language Infrastructure

1. Introduction to the Common Language Infrastructure Miller-CHP1.fm Page 1 Wednesday, September 24, 2003 1:50 PM to the Common Language Infrastructure The Common Language Infrastructure (CLI) is an International Standard that is the basis for creating execution

More information

Learning to Program in Visual Basic 2005 Table of Contents

Learning to Program in Visual Basic 2005 Table of Contents Table of Contents INTRODUCTION...INTRO-1 Prerequisites...INTRO-2 Installing the Practice Files...INTRO-3 Software Requirements...INTRO-3 Installation...INTRO-3 Demonstration Applications...INTRO-3 About

More information

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix PGJC4_JSE8_OCA.book Page ix Monday, June 20, 2016 2:31 PM Contents Figures Tables Examples Foreword Preface xix xxi xxiii xxvii xxix 1 Basics of Java Programming 1 1.1 Introduction 2 1.2 Classes 2 Declaring

More information

Vtusolution.in C# PROGRAMMING AND.NET. Subject Code: 10IS761/10CS761 I.A. Marks : 25 Hours/Week : 04 Exam Hours: 03 Total Hours : 52 Exam Marks: 100

Vtusolution.in C# PROGRAMMING AND.NET. Subject Code: 10IS761/10CS761 I.A. Marks : 25 Hours/Week : 04 Exam Hours: 03 Total Hours : 52 Exam Marks: 100 C# PROGRAMMING AND.NET Subject Code: 10IS761/10CS761 I.A. Marks : 25 Hours/Week : 04 Exam Hours: 03 Total Hours : 52 Exam Marks: 100 PART A UNIT 1 6 Hours The Philosophy of.net: Understanding the Previous

More information

Fundamental C# Programming

Fundamental C# Programming Part 1 Fundamental C# Programming In this section you will find: Chapter 1: Introduction to C# Chapter 2: Basic C# Programming Chapter 3: Expressions and Operators Chapter 4: Decisions, Loops, and Preprocessor

More information

Introduction to Visual Basic and Visual C++ Introduction to Java. JDK Editions. Overview. Lesson 13. Overview

Introduction to Visual Basic and Visual C++ Introduction to Java. JDK Editions. Overview. Lesson 13. Overview Introduction to Visual Basic and Visual C++ Introduction to Java Lesson 13 Overview I154-1-A A @ Peter Lo 2010 1 I154-1-A A @ Peter Lo 2010 2 Overview JDK Editions Before you can write and run the simple

More information

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Computer Science And Engineering

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Computer Science And Engineering INTERNAL ASSESSMENT TEST 1 Date : 19 08 2015 Max Marks : 50 Subject & Code : C# Programming and.net & 10CS761 Section : VII CSE A & C Name of faculty : Mrs. Shubha Raj K B Time : 11.30 to 1PM 1. a What

More information

.NET CLR Framework. Unmanaged Hosts - Assembly Access

.NET CLR Framework. Unmanaged Hosts - Assembly Access Unmanaged Hosts - Assembly Access ptrex 8/08/2017 WHAT : is.net Common Language Runtime (CLR) Framework The Common Language Runtime (CLR) is a an Execution Environment. Common Language Runtime (CLR)'s

More information

The C# Programming Language. Overview

The C# Programming Language. Overview The C# Programming Language Overview Microsoft's.NET Framework presents developers with unprecedented opportunities. From web applications to desktop and mobile platform applications - all can be built

More information

DigiPen Institute of Technology

DigiPen Institute of Technology DigiPen Institute of Technology Presents Session Two: Overview of C# Programming DigiPen Institute of Technology 5001 150th Ave NE, Redmond, WA 98052 Phone: (425) 558-0299 www.digipen.edu 2005 DigiPen

More information

Introduction to C# Applications

Introduction to C# Applications 1 2 3 Introduction to C# Applications OBJECTIVES To write simple C# applications To write statements that input and output data to the screen. To declare and use data of various types. To write decision-making

More information

Prof. Dr. Hanspeter Mössenböck Institute for System Software Johannes Kepler University Linz

Prof. Dr. Hanspeter Mössenböck Institute for System Software Johannes Kepler University Linz Overview of.net Prof. Dr. Hanspeter Mössenböck Institute for System Software Johannes Kepler University Linz University of Linz, Institute for System Software, 2004 published under the Microsoft Curriculum

More information

Microsoft Visual Basic 2005: Reloaded

Microsoft Visual Basic 2005: Reloaded Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 1 An Introduction to Visual Basic 2005 Objectives After studying this chapter, you should be able to: Explain the history of programming languages

More information