Aveneu Park, Starling, Australia

Ei the permission to limit the access of

Ei
Nay Chi Zaw
(HND
– 18)

Task 1
Programming
in .NET   

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now

 

Table of
Contents
Task 1. 1
Security. 1
Type Safety. 2
Time to
market 2
Language
independence. 2
Simple
Deployment 3
BCL (Base
Class Library) 4
Most
documented Framework ever 5
Portability. 5
Memory
management (Garbage collection) 6
Interoperability. 6
Reference
List 6
 

Task 1

Principles,
Characteristics and features of .NET framework

Security

            The .NET framework has mechanisms for protecting the codes from
unauthorized users. It has two features, code access security (CAS) and
ASP.NET web application security. The CAS
is based on the source of usage like if it is installed with local device or if
it is downloaded from the internet. And CAS
uses the source to give permissions. It also can use the permission to
limit the access of codes that has to be protected from some operations.

          There is
another security called role-based security mechanisms that provides the
information to make decide users’ allowance based on the users’ identity or
membership.

Type Safety

          Type safety
is characteristic of code that allows the developers to make sure that a value
or object will exhibit certain properties so that he/she can use it in a
specific way without fear of unexpected or undefined behavior. For example: the Arraylist class is not
type-safe because it can store any objects.

The type safety function can
prevent from the wrong method using, and memory size issues. CLR and CTS are
used to make type safety. And Dynamic Language Runtime (DLR) extended the CLR, allows dynamically typed
languages to be implemented upon CLI. The type-safe codes cannot read the
values from another objects’ private fields.

When the code is type safe, the
common language runtime can completely isolate assemblies from each other. This
isolation helps ensure that assemblies cannot adversely affect each other and
it increases application reliability. When the code is not type safe, unwanted
side effects can occur. For example, the runtime cannot prevent unmanaged code
from calling into native (unmanaged) code and performing wrong operations. 

Time to market

            .Net framework is free to use. It
is the programming framework developed by Microsoft which can be used to build
many different applications like Windows, web or mobile applications. It
provides the application isolation and eliminates the conflicts. And the .NET
framework components do not affect with the other applications.

Language independence

          The different
objects created in the different programming languages can interact with one
another. The .NET framework is distinguished by the common type system (CTS).
And CTS supports how data may interact with one another in relation to the
infrastructure of the common language. So, .NET framework is capable of
exchanging the objects between the different applications that use .NET
languages.

 

Simple Deployment

            The .Net framework consists of tools and features that helps the users
in the software installation and the previous software versions cannot
interfere with the current versions. By default, the access modifier of the
components are private and they are only visible to the application they
contain. And the advertisement, repairing and install-on-deploying are all
available while the user is deploying the application.         

BCL (Base Class Library)

The BCL is the base class library
for modern programming language. BCL is
the foundation of .NET Framework applications, components, and controls.
And it provides the functionality like ADO.NET, XML, Threading, IO, Security,
Diagnostics, Resources, Globalization, collections etc. .NET base class
library contains the namespaces that are commonly used such as System, System.Data, System.IO, System.Net,
System.., etc. And the BCL is included in the FCL (Framework class library)
which is the wider class library that contains the WinsForms, xML stacks, and
etc.

CLI includes the BCL in order to
encapsulate a large number of common functions, such as file reading and
writing, graphic rendering, database interaction, and XML document
manipulation, which makes the programmer’s job easier. 

 

 

Most documented Framework ever

          Developing
applications using .Net framework is very robust and highly secure with great
quality. The .Net reduces time, creates quality, and reliable that ensure
smooth functioning of complex business applications. So, it helps customer to
improve their business easily. So, it is the most documented framework.

          Since the first version, Microsoft has released nine
more upgrades for .NET Framework, seven of which have been released along with
a new version of the visual studio. The new versions of .NET framework
have upgraded CLR (Common Language Runtime). And it have two versions for
mobile or embedded devices. It is also available on Windows platforms and
Windows Mobile devices.

Portability

          The .NET
framework can be used in multiple platform and it can also be implemented in
other operating systems such as Windows, Mac, and Linux. And the applications
for CLI are submittedas the official standards which enables the third parties
to make compatible implementation such as languages on other platforms.

Memory management (Garbage collection)

          This features
manage the memory in .Net framework. This is done by CLR too. It detects and
manage which memory can be freed safety and when. And an object becomes a
garbage when there is no reference to the object and it cannot be used. The
.Net framework have garbage collector (GC) which runs timely which checks for
the unusable objects and makes memory allocation. Although the garbage
collector is able to track the lifetime of an object that encapsulates an
unmanaged resource, it doesn’t know how to release and clean up the unmanaged
resource.

When
the garbage collection runs, it pauses the application and then, for each
object referred to in the root, then it enumerates all the objects reachable
from the root objects and marks them as reachable. And it uses the CLI metadata to see if the
objects are reachable. And the objects which are not reached are marked as
garbage. After the garbage collection, the application resumes.

Interoperability

            The user can choose from many
versions of the .NET framework since the common language runtime (CLR) enables
it. So the users don’t have to worry about the incompatible versions of
computers. The access to the component object model (COM) is provided in the System.Runtime.InteropServices and System.EnterpriseServices namespaces
of the framework.

          The user can
develop the managed code that can be used by all programming language and rules
for using them is called the Common Language Specification (CLS). The .NET
Framework enables interoperability with unmanaged code through platform
services, the System.Runtime.InteropServices namespace.

 

x

Hi!
I'm Mack!

Would you like to get a custom essay? How about receiving a customized one?

Check it out