Professional Documents
Culture Documents
part 1
Introduction
www.luxoft-training.com
2
Module Content
.Net Framework Overview
Using IDE
Code Organization
www.luxoft-training.com
3
www.luxoft-training.com
4
Definition
.NET Framework is a software framework developed by Microsoft which
runs primarily on Microsoft Windows.
www.luxoft-training.com
5
www.luxoft-training.com
6
www.luxoft-training.com
7
www.luxoft-training.com
8
www.luxoft-training.com
9
www.luxoft-training.com
10
www.luxoft-training.com
11
www.luxoft-training.com
12
www.luxoft-training.com
13
www.luxoft-training.com
14
www.luxoft-training.com
15
Class Loader
www.luxoft-training.com
16
Assembly
www.luxoft-training.com
17
Solution
Every project represents a service, library, or
application.
They all are compiled into an assembly.
www.luxoft-training.com
18
Assembly
Definition
Assembly properties
Main files
www.luxoft-training.com
19
Assembly
An assembly is the main unit of
deployment
version management
reuse
activation and security permit areas
www.luxoft-training.com
20
Assembly Properties
An assembly has the following properties:
www.luxoft-training.com
21
Assembly Properties
It creates the version scope
execution is supported
www.luxoft-training.com
22
Main files
Depending on the project type and technologies used, the set of files will
be slightly different.
www.luxoft-training.com
23
End
www.luxoft-training.com
24
www.luxoft-training.com
25
www.luxoft-training.com
26
Assembly Structure
Assembly disassembled with IL DASM :
Public types
www.luxoft-training.com
27
Assembly Structure
Assembly disassembled with IL DASM :
Assembly version
www.luxoft-training.com
28
Assembly Structure
Assembly disassembled with IL DASM :
Public key
www.luxoft-training.com
29
www.luxoft-training.com
30
www.luxoft-training.com
31
High performance
www.luxoft-training.com
32
Debugging
Debugging is a stage in software program development where errors are
identified, localized and fixed. To understand where an error occurred, you
have to:
www.luxoft-training.com
33
Debugging
Visual Studio Debugger
Setting breakpoint, breakpoint conditions
Navigating the code
Viewing/changing the values of variables in the process of debugging
www.luxoft-training.com
34
Breakpoints
breakpoint - is an intentional stopping the
program
execution when a debugger is called.
www.luxoft-training.com
35
Call Stack
Using the Call Stack window you can view function and procedure
calls that are currently in the stack.
The Call Stack window displays the name of each function and
programming language it is written in.
www.luxoft-training.com
36
DEMO
www.luxoft-training.com
37
Code Organization
Namespace
Comments
Documentation
www.luxoft-training.com
38
Namespace
The namespace is used for preventing name conflicts.
System namespace
www.luxoft-training.com
39
Namespace
www.luxoft-training.com
40
General recommendations on naming
A name should reflect functionality available in the namespace
Do not introduce names of generic types
Use the names in the namespace in plural if possible
Add a prefix consisting of the company name to the names in the
namespace
On the second level of name hierarchy in the namespace, use a
permanent, version-independent product name
www.luxoft-training.com
41
Namespace
A good practice — Extend your namespace in case of project files
nesting
www.luxoft-training.com
42
Comments
Single-line comment:
Delimited comment:
www.luxoft-training.com
43
Comments
During code compilation, comments are
deleted and do not increase the application
size.
Make comments to those parts of code where
you have sophisticated or unclear logic or
complex algorithms. But here you should ask
yourself a question: “Is this code complex or
just a bad one?” :)
www.luxoft-training.com
44
Documentation Generation
It is generated together with the build.
Stubs are places with a subtle movement of the hand.
www.luxoft-training.com
45
Documentation Generation
www.luxoft-training.com
46
Summary
.Net Framework Overview
Definition
Using IDE
Code Organization
www.luxoft-training.com
47
Questions
www.luxoft-training.com