Skip to main content

Session 2:- C# Framework




Date
Thursday, November 28, 2013
Time
Description
10.00 am to 12.00 pm
Lecture on Framework
Learning:

.Net Framework:-
 Dot net framework is the environment for building, Running, deploying web application and web services.

Common Language Runtime(CLR)
It manages execution of code and core functionality such as
              1) Memory management(Garbage collection)
        2)  Code access security
        3)   Code verification
        4)  Exception handling.

Class library:-
It is an object oriented collection of predefined classes that can be used to create any type of application.

Common type system(CTR)
 CLR has CTS so that two languages should communicate smoothly. It is intended to allow to written in different programming language to easily share information.
    Two Types
1)      Value Types:-
                 Directly contains the data , and instance of it is allocated on stack or in                      line in a structure.
2)      Reference types:-
Stores the values of the memory address and is allocated on heap.

Common language specification(CLS)
 CLS is a document which a language should follow so that it can communicate with other languages in seamless.   

Assembly:-
It is the basic unit of deployment.
e.g .exe, .dll files

    Types of assemblies:-
1)      Private assembly:- It is created by default when you execute your code and it is stored in root directory or sub directory.
2)      Shared Assembly:- It is used by more than one application and is available in global cache.  


 

Comments

Popular posts from this blog

Session 3 :- Control Structures in c#

Date Friday, November 29, 2013 Time Description 10.00 am to 12.00 pm Control structure in c# Learning :   For Loops Why is this important to learn about? Control structures are one of the most fundamental concepts in any programming language you will come across. If you want to know C#, and if you want to learn to program with any language, you must have a firm grip on the control structures of the language. Definitions of terms used . Iteration – This is the act of repeating something (that ‘something’ being code statements in the programming context). Conditional – A conditional action is said to be one that is only performed if a certain condition is true. For Loops For loops allow us to specify the number of times to repeat a block of code. It is best demonstrated with an example: for (int i = 1; i <= 5; i++) {    Console...
Oop's Concept .Net is purely object oriented Language because it strongly support four major pillars  object oriented language.   four Major Pillars are : -      1) Abstraction.      2) Encapsulation      3) Inheritance      4) Polymorphism .Net  also support three minor pillars : -     1) Strongly Type Cast     2) Persistent     3) Concurrency *** ABSTRACTION ***        In simple words  “Abstraction captures only those details about an object that are relevant to the current perspective.”   In object-oriented programming theory, abstraction involves the facility to define objects that represent abstract “actors” that can perform work, report on and change their state, and “communicate” with other objects in the system . Abstraction is a concept which hide complexity. *** ENCAPSULATION ***      Encaps...

Inheritance in c#

Inheritance is one of the pillars of Object Oriented Programming. It allows the child class to reuse, extend and modify the behavior of parent class. The class whose members are inherited is called as base class and class who inherits is called a derived class. We can inherit only one class at a time. Multiple inheritance is not supported in c#. A struct cannot inherit any base class doing so will generate a compiler error. 1.       Private members are only accessible to the derived class which is nested in the inherited base class. 2.       Protected members are accessible only in derived class. 3.       Internal members are accessible in the derived class that is visible in the same assembly of the base class. 4.       Public members are accessible in the derived class. They can be called just as if they were declared in the derived class. All Types are implicitly inherited ...