5 thoughts on “What does C#mean?”

  1. 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.
    Among them, I will examine the general motivation of creating a new computer language, and will specifically indicate what causes the appearance of C#. Then I will introduce the similarities between C#and it to Java, C, C . Secondly, I will discuss the discussion Some of the high -levels that exist between Java and C#are different from the foundation. I will end this article by measuring the knowledge required to develop large -scale applications in multiple languages ​​(or the degree of lack of this knowledge) And this is the main strategy of .NET and C#. At present, C#and .NET can only use C#language rules, and a "D preview version" of Windows 2000, as well as the rapidly increasing document set on MSDN. Forms are obtained (there is no final setting).
    Microsoft C#language definition is mainly inherited from C and C , and many elements in the language also reflect this .c#in designer's optional available from C inherited from C . The options are wider than Java (such as Struts), and it also adds its own new features (for example, the source code version definition). The language that can be accepted and adopted. And Microsoft is currently worth noting for its new language. At present, everyone's response is: "This is a counterattack against Java."
    C#is more like Java. Although Microsoft maintains silence on this issue. This is also expected. I think that because Java has recently been successful, companies that use Java have reported that they have improved in production efficiency than C .
    Java brought The huge influence of the coming and everyone's extensive acceptance of it has clearly explained the number of programmers who work on this language and platform (it is estimated that a total of 2.5 million programmers use Java in the world). The number of applications written by language is surprising and has penetrated each level of calculation, including wireless computing and mobile phone (such as the Java phone invented by Japan) .c#Can we get such a courtesy in the user field? We must have to Waiting and watching, just like the CEO of SSI Company As the chairman Kalpathi S. SURESH pointed out, "I found that all these are gradual. If C#does not exist, we can always return to Java or C and C . In a sense, it is just a market gimmick made by large companies. We must give them the time to settle down to see if these really affect the IT industry. : The statement in the C#class is very similar to Java. This is reasonable because of experience telling us that the Java model is working well. Java's keyword Import has been replaced with USING, which plays the same role. A class starts to execute The starting point is the static method main (). The Hello World program below shows the basic form:
    using system;
    class hello
    {
    static void main () n {
    console.writeline ("Hello, World");
    }
    }
    In this example, the name System pointed to a naming space that includes 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; it can only be被用做一个基类.C#关键字sealed就象Java关键字final,它申明一个类不是抽象的,但是它也不能被用做另一个类的基类.界面:就象在Java中一样,一个The interface 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 subtle futures in the future. Different, but this feature does not seem to change compared with Java. Boolean operations: The result of conditional expression is Boolean data type. Boolean data type is an independent data type in this language. From Boer type to other types, there are no direct direct types. The conversion process. Boolean constant TRUE and FALSE are keywords in C#. Error treatment: Like Java, manages the error processing process by throwing and capturing abnormal objects. .
    The characteristics of the inheritance of C and C
    Compiled: The program is directly compiled into a standard binary executable form. Language, similar to 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. The body is similar, because it can contain data declaration and method. However, it is not like C , the C#structure is different from the class and does not support inheritance. However, the same as Java is that a structure can realize the interface. R. n Pre -compilation: In the C #, pre -compilation instructions support conditional compilation, warning, error report and compilation bank control. The pre -compiled instructions are:
    #Define
    #undef
    #IF
    #elif
    #else
    #endif
    #warning
    #error
    #line []
    Use the #define statement to assign the symbol, so there is no concept of source code replacement-these symbols can only be used in #IF and #elif pseudo instructions. Can modify the file name of #Warning and #ERROR output results.
    MEHEP: Some operators can be reloaded, while others cannot. In particular, no assignment operator can be heavy can be heavy. Carrier. The monocular operator that can be reloaded is:
    -! ~ - true false
    / %

  2. C#(read as C Sharp, do not read as Sharp, haha) is a tailor -made language for Microsoft, which is one of the most complete object -oriented custody code languages ​​at present.
    c#and C and C have nothing to do, because C#is a hosting language (that is, the CLR that must be run), which is essentially different from the other two.

  3. Don't you want to mistake the children on the second floor ?? The first floor is a joke. Just take a name. If it is you developed him, you call him A dog language and no one blame you.

Leave a Comment

Shopping Cart