C-Sharp

Google+ Pinterest LinkedIn Tumblr +

C# 

The title of this article for technical reasons can not contain the # sign. The correct name should be C #. 

C # is a high-level object-oriented programming language developed by Microsoft along with the platform. NET Framework, later approved by the standardization committees ECMA (ECMA-334) and ISO (ISO / IEC 23270). Microsoft based C # to C + + and Java. 

C # can be used to create database programs, Web sites and applications, Web services, applications of form in the Windows software for mobile devices (PDAs and mobile phones), etc.

Language Objectives 

ECMA standard [1] defines the current design of C # as follows: 

C # is a simple, modern, multi-purpose and object-oriented programming language. 

Language and its implementation provides support for software engineering principles such as: monitoring the border of fields, detection using neinicializovaných variables and automatic garbage collection. Also important are their properties such as: robustness, durability and programmer productivity. 

The language is suitable for the development of distributed software components in different environments. 

Source code portability is very important, especially for those programmers who are familiar with C and C + +. 

International support is also very important. 

C # is designed for writing applications for devices with sophisticated operating systems and for devices with limited capabilities. 

Although the programs written in C # should not waste any time with the assigned processor and memory can not be measured with applications written in C or assembler language. 

Language

The following description is based on C # language specification and other documents, which can be found in the References section. 

C # there is no multiple inheritance – that means that every class may be descended from only one class. This decision was taken to avoid complications and complexity that is associated with multiple inheritance. A class can implement any number of interfaces. 

There are no global variables and methods. All functions and methods must be declared within classes. Substitute for them are static variables and methods of public classes. 

In object-oriented programming in order to comply with the principle of encapsulation of a model often used when the data class attributes can be accessed from outside only indirectly by means of two methods get (accessor) and set (mutator). C # can instead define the so-called Property, which still works outside as a data attribute, but within the Property, we can define a get and set methods. The advantage is easier to work with attribute data, while preserving the principle of encapsulation. 

C # is type-safe than C + +. The only default implicit conversions are those that are considered safe as an expansion of integers (eg from 32 bit to 64 bit) or conversion of derivative type in the type of parent. There is no implicit conversion from Integer to Boolean type, or the enumeration type enum and integer type. 

C # does not need a forward declaration – the declaration order is not important methods. 

C # is case sensitive – this means that the distinction between capital and lowercase letters.Identifiers “value” and “Value” are thus not unlike VB.NET equivalent.

C# 

The title of this article for technical reasons can not contain the # sign. The correct name should be C #. 

C # is a high-level object-oriented programming language developed by Microsoft along with the platform. NET Framework, later approved by the standardization committees ECMA (ECMA-334) and ISO (ISO / IEC 23270). Microsoft based C # to C + + and Java. 

C # can be used to create database programs, Web sites and applications, Web services, applications of form in the Windows software for mobile devices (PDAs and mobile phones), etc.

Language Objectives 

ECMA standard [1] defines the current design of C # as follows: 

C # is a simple, modern, multi-purpose and object-oriented programming language. 

Language and its implementation provides support for software engineering principles such as: monitoring the border of fields, detection using neinicializovaných variables and automatic garbage collection. Also important are their properties such as: robustness, durability and programmer productivity. 

The language is suitable for the development of distributed software components in different environments. 

Source code portability is very important, especially for those programmers who are familiar with C and C + +. 

International support is also very important. 

C # is designed for writing applications for devices with sophisticated operating systems and for devices with limited capabilities. 

Although the programs written in C # should not waste any time with the assigned processor and memory can not be measured with applications written in C or assembler language. 

The following description is based on C # language specification and other documents, which can be found in the References section. 

C # there is no multiple inheritance – that means that every class may be descended from only one class. This decision was taken to avoid complications and complexity that is associated with multiple inheritance. A class can implement any number of interfaces. 

There are no global variables and methods. All functions and methods must be declared within classes. Substitute for them are static variables and methods of public classes. 

In object-oriented programming in order to comply with the principle of encapsulation of a model often used when the data class attributes can be accessed from outside only indirectly by means of two methods get (accessor) and set (mutator). C # can instead define the so-called Property, which still works outside as a data attribute, but within the Property, we can define a get and set methods. The advantage is easier to work with attribute data, while preserving the principle of encapsulation. 

C # is type-safe than C + +. The only default implicit conversions are those that are considered safe as an expansion of integers (eg from 32 bit to 64 bit) or conversion of derivative type in the type of parent. There is no implicit conversion from Integer to Boolean type, or the enumeration type enum and integer type. 

C # does not need a forward declaration – the declaration order is not important methods. 

C # is case sensitive – this means that the distinction between capital and lowercase letters.Identifiers “value” and “Value” are thus not unlike VB.NET equivalent.

Read more: http://computersight.com/programming/c-2/#ixzz0xzJ9T1EU

Share.

About Author

Leave A Reply