C#language characteristics, programming methods, main application directions, difficult procedural, main IDE, is it suitable for game development? and many more!
Thank you!
5 thoughts on “Who will briefly introduce C#?”
Leave a Comment
You must be logged in to post a comment.
C#(read "C Sharp", Chinese transliteration "Sharp") is an object -oriented -oriented of Microsoft, a high -level programming language that runs on .NET Framework ) The latest achievement of Microsoft researcher Anders Hejlsberg is the latest achievement of Microsoft Company .c#looks surprisingly similar to Java; it includes a single inheritance, interface, almost the same syntax as Java, and compiled into an intermediate code and then run again. Process. But C#and Java are obviously different. It borrows a characteristic of Delphi. It is directly integrated with the COM (component object model), and it is the protagonist of the Microsoft .Net Windows network framework.
In this article, I will examine the general motivation to create a new computer language, and specifically indicate what the cause of C#. Then I will introduce the similarities between C#and it to Java, C, C . Secondly, I will discuss some of the high -level, different from the foundation that exists between Java and C#. I will measure the knowledge required when developing large applications in multiple languages (or the lack of this knowledge (the lack of this knowledge ) Come to end this article, and this is the main strategy of .NET and C#. At present, C#and .NET can only use C#language rules, as well as a "D preview version" of Windows 2000, and the rapid increase in MSDN increased rapidly The form of document collection is obtained (not the final setting).
Microsoft C#language definition is mainly inherited from C and C , and many elements in the language also reflect this .c#文The designer is wider than Java inherited from the C inheritance (such as Structs), which also adds its own new features (for example, the source code version definition). .C#also needs to evolve into a language that developers can accept and adopt. And Microsoft's current new language is worth noting. At present, everyone's reaction is: "This is a counterattack against Java." R. n
C#is more like Java, although Microsoft remains silent on this issue. This is also an unexpected thing. I think that because Java has recently been successful, companies that use Java have reported C has obtained improvement.
The huge impact of Java and everyone's wide acceptance of it has clearly explained the number of programmers who work on this language and platform There are a total of 2.5 million programmers using Java). The number of applications written by this language is surprising and already penetrated each level of calculation, including wireless computing and mobile phone (such as Japan invented Java invented by Japan Phone) .c#Can you get such a courtesy in the user field? • We must wait and watch, just like the CEO and Chairman Kalpathi S. SURESH of the SSI company, "I find that all these are gradual. If C#does not exist, we can always return to Java or C and C and C and C and C and C and C and C and C and C . These are not entirely new technologies; they are just market gimmicks made by large companies in a greater sense. We must give them time to settle down. n
c#The characteristics inherited from Java
Class: The statement in C#is similar to Java. This is reasonable because of experience telling us that the Java model works well. Java's keyword Import has been replaced with USING, which plays the same role. The starting point of a class that starts to execute is the static method main (). The Hello World program below shows the basic form:
usion System;
Class Hello
{
static void main ()
{ r
console.writeline ("hello, worldd ");
}
}
In this example, the name System points to a naming space included in the basic C#utility collection ( namespace). This naming space includes the Console class, which is used to output a string in this example. The class can be abstract and inherited: a class that is notified as an ABSTRACT cannot be instantiated; Use as a base class .c#Keyword Sealed is like the Java keyword Final. It indicates that one class is not abstract, but it cannot be used as a base class of another class. It is an abstract definition of a set of methods. When a class or structure implements a interface, it must implement all the methods defined in this interface. A single class can achieve several interfaces. Maybe there will be some subtle differences in the future. , But this feature does not seem to change compared with Java. Boolean operations: The result of the conditional expression is the Boolean data type, the Boolean data type is an independent data type in this language. The conversion process. Boolean constant True and FALSE are keywords in C#. Error processing: Like Java, manages the error processing process by throwing and capturing abnormal objects. Memory management: The underlying .NET framework for automatic memory waste recycling.
c#The characteristics of inheritance inherited from C and C
compilation of the program directly into a standard binary execution form. The program is not compiled into binary executable forms, but a middle language, similar to the Java bytecode. If the previous hello world program is preserved as a text file and named Hello.cs, it will be compiled into an executable program that names hello.exe. Similar to the structure of C , because it can contain data declarations and methods. However, it is not like C , the C#structure is different from the class and does not support inheritance. Interface.
Pre -compiled compilation: C#has pre -compiled instructions to support conditional compilation, warning, error report and compile control control. The pre -compilation instructions are:
#define
#undef
#if
n#elf
n#else
#endif
#warning
#error
n#line []
#Define statement assignment the symbol, so there is no concept of source code replacement-these symbols can only be used in #IF and #elif pseudo instructions. The line number also has the file name of the #Warning and #ERROR output results.
O operating symbols: some operators can be reloaded, while others cannot. In particular, there is no assignment operator that can be assigned the operator that can The one -purpose operator that can be reloaded is:
-! ~ - true false
Yes:
- * / %
C#(read as "C -SHARP") as an object -oriented language product for Microsoft. Can allow developers to quickly establish a large number of applications on the .NET platform. According to the definition given by Microsoft, C#is derived from C and C . Simple, modern, object -oriented and type security programming language. C#provides programmers with powerful and flexible functions required to develop rapidly developing web applications. The core of C#and Java has the same advantages and limitations as C . Compared with C , C#will be more likely to be understood and accepted, and a lot of in the future. The application of the Net platform will be developed by C#.
C#will be the first choice for future development enterprise -level distributed applications. Of course, this is not to say that C#r is suitable for network hair.
For example, we can use C#to develop any classical Windows program. Not only that, whether it is control order, graphics program, NT service program, ordinary components, and even web pages. Can be developed with C#. can believe. After reading this book, whether you are a C#and C programmers, or you have been using VB or Delphi for programming, you will enjoy everything that C#brings to us.
If you have learned .java language. You will find that C#is also very type in Java in many aspects. The execution of the Java program and the platform of the Java language are irrelevant. They are based on the Java virtual machine JVM, while the C#language requires the support of the Net framework. The new characteristics and functions of many C#language we are talking about, such as types of safety, garbage collection, version system, compatibility, and cross -language abnormal processing and inheritance, which are completed by the underlying .NET framework.
There are many characteristics. Simple and easy to use is a relatively obvious
programming method. Essence Essence what do you mean?
The main application: network, web development
is simple, but there is still a place where it needs long -term research
ide: vs series, 2003, 2005, 2008, etc. It can be done above
I am a novice, I do n’t know much about it, answer it, please make a master judge. Bar ... The game focuses on efficiency and its efficiency is far worse than C ...
game development? In theory, it depends on your cow! It is not difficult to make an application. It is difficult to make games. It must be handed in with the bottom layer!