Summary of main features of C language

  • 2020-12-21 18:08:48
  • OfStack

C# is a simple, modern, object-oriented language inherited from C++ and Java.
2. Its goal is to combine the characteristics of Visual Basic high yield and C++ bottom efficiency.
3. It is part 1 of Microsoft Visual ES11en7.0.
Visual studio supports Vb,VC++,C++,Vbscript,Jscript. All of these languages provide access to the ES20en.ES21en platform.
5.. NET includes an Common Execution engine and a rich class library.
Microsofts JVM eqiv is the Common language(common language) runtime (CLR).
7. CLR support more than one language, such as C # VB. NET, Jscript, ASP. NET, C + +.
8. Source code -- > Intermediate language code (IL)-- > (JIT compiler) machine code.
9. Classes and data types are common to all.NET languages.
10. We can use C# to develop console applications,Windows applications,Web applications.
11. In C# Microsoft addresses C++ issues such as memory management, Pointers, etc.
12. It supports garbage collection (garbage collection), automatic memory management and many other features.

Key features of C#

Simple A.

1. The pointer in C# has disappeared.
2. Unsafe operations, such as direct memory operations, are not allowed.
3. In C#, "::" or "- > "The operator is useless.
4. Since it is based on the.NET platform, it inherits the features of automatic memory management and garbage collection.
5. Data range with variable original data type such as Integer,Floats, etc.
The integer values 0 and 1 no longer appear as booleans. Booleans in C# are pure true and false values and there are no more "=" and "==" operator errors."==" is used for comparison operations and "=" is used for assignment operations.

B. Modern

C# builds on the current trend and is very powerful and simple for creating mutually compatible, scalable, robust applications.
C# has built-in support to convert any component into an web service, which can be used over the Internet by any application running on any platform.

C. Object oriented

1.C# supports data encapsulation, inheritance, polymorphism and object interfaces (i.e., the interface keyword in java).
2.(int,float,double) is not an object in java, but C# introduces and constructs (structs) to make the original data type an object int i=1; String a=i Tostring(); // Convert (or)Boxing

D. Type safety

1. In C# we cannot do unsafe type conversions like converting double to boolean.
2. Value types (constant types) are initialized to zero and reference types (objects and classes are automatically initialized to zero by the compiler.
3. Array type subscripts start at zero and check for out-of-bounds.
4. Type overflow will be checked.

E. Mutual compatibility

1.C# provides original support for COM and ES129en-based applications.
2. Limited use of the original pointer is allowed.
3. Users no longer need to explicitly implement unkown and other COM interfaces; these features are already built in.
C# allows users to manipulate old code with Pointers as unsafe code snippets.
5. Components in ES137en.NET and other intermediate code languages can be used directly in C#.

F. Scalability and upgradability

1.. NET introduces the concept of components, which have self-describing functions through their "manuals". The manual establishes the identity, version, language and digital signature of the parts. Parts do not need to be registered anywhere.
2. To extend our program, we just need to delete the old files and upgrade them with new ones. There is no need to register a dynamic link library.
3. The process of upgrading software components is just an error-detection task. Changes to the code can affect existing programs, and C# supports version changes in the language. Support for interface and method overloading allows complex application frameworks to evolve and evolve over time.

conclusion

C# is a modern, type-safe, object-oriented programming language that enables programmers to quickly and easily develop solutions for Microsoft's.ES154en platform.


Related articles: