Wednesday, 24 January 2018


C# (pronounced as "C-sharp") is a modern high-level object oriented and type safe programming language developed under the leadership of Anders Hejlsberg at Microsoft in 2002 for developing managed software applications. It is one of the most popular programming languages of .Net framework.
Platform
A platform could be hardware architecture and some software, on the top of which others applications operate. In another word, it is environment with required resources.eg. CLR (common language runtime) on which managed codes runs, JVM (Java virtual machine).
Framework
Framework is ready to use collections of classes and interfaces used for developing particular types of applications. Frameworks bring consistency in software development.eg.Net framework, spring and struts in java, Laravel and zend framework in Php.
Type safety


When data types of one type is assigned to other type unknowingly, we get the error at compile time or undesirable result at runtime and preventing such types of error is known as type safety. C# is a type safe language.
When we add integer and string value and assigned its result into integer variable throws  "cannot implicitly convert string to int" compile time error.
                       
There are two types of languages one is type safe and another is not. JavaScript is not a type safe language.
    <script>
        var number = 10;//integer
        var string = "10";//string
        var sum = string + number;//concate or addition ?
        alert(sum);//result 1010
    </script>



2 comments:

Powered by Blogger.

Followers

Translate

Currency Converter

Exchange Rate

Featured post

Interpolation in angular 5

When we want to communicate from component class to template ,we can use interpolation which use the { { expression }} to render the bound...

Popular Posts

My Facebook Page