毕业论文

打赏
当前位置: 毕业论文 > 外文文献翻译 >

C#的应用英文文献和中文翻译(2)

时间:2021-12-26 11:59来源:毕业论文
The fact that C# is designed from the start to work with 。NET, however, means that its support for the features of 。NET is both more complete, and offered within the context of a more suitable syn

The fact that C# is designed from the start to work with 。NET, however, means that its support for the features of 。NET is both more complete, and offered within the context of a more suitable syntax than for those other languages。 While the C# language itself is very similar to Java, there are some improvements:in particular, Java is not designed to work with the 。NET environment。 

Before we leave the subject, we should point out a couple of limitations of C#。 The one area the language is not designed for is time-critical or extremely high performance code—the kind where you really are worried about whether a loop takes 1,000 or 1,050 machine cycles to run through, and you need to clean up your resources the millisecond they are no longer needed。 C++ is likely to continue to reign supreme among low-level languages in this area。 C# lacks certain key facilities needed for extremely high performance apps, including the ability to specify inline functions and destructors that are guaranteed to run at particular points in the code。 However, the proportions of applications that fall into this category are very low。 

B。原文的翻译C#的应用

C#在某种程度上可以看作是。NET面向Windows环境的一种编程语言。在过去的十几年里,Microsoft给Windows和 Windows API添加了许多功能,VB和C++也经历了许多变化。虽然VB和C++最终已成为非常强大的语言,但这两种语言也存在问题,因为它们保留了原来的一些内容。 

对于Visual Basic来说,它的主要优点是很容易理解,许多编程工作都很容易完成,基本上隐藏了Windows API和COM组件结构的内涵。其缺点是Visual Basic从来没有实现真正意义上的面向对象,所以大型应用程序很难分解和维护。另外,因为VB的语法继承于BASIC的早期版本(BASIC主要是为了让初学者更容易理解,而不是为了编写大型商业应用程序),所以不能真正成为结构化或面向对象的编程语言。 论文网

另一方面,C++在ANSI C++语言定义中有其自己的根。它与ANSI不完全兼容,因为Microsoft是在ANSI定义标准化之前编写C++编译器的,但已经相当接近了。遗憾的是,这导致了两个问题。其一,ANSI C++是在十几年前的技术条件下开发的,因此不支持现在的概念(例如Unicode字符串和生成XML文档),某些古老的语法结构是为以前的编译器设计的(例如成员函数的声明和定义是分开的)。其二,Microsoft同时还试图把C++演变为一种用于在Windows上执行高性能任务的语言—— 在语言中避免添加大量Microsoft专用的关键字和各种库。其结果是在Windows中,该语言成为了一种非常杂乱的语言。让一个C++开发人员说说字符串有多少个定义方式就可以说明这一点:char*、LPTSTR、string、CString (MFC 版本)、CString (WTL 版本)、wchar_t*和 OLECHAR*等。 

现在进入。NET时代—— 一种全新的环境,它对这两种语言都进行了新的扩展。Microsoft给C++添加了许多Microsoft专用的关键字,并把VB演变为VB。NET,保留了一些基本的VB语法,但在设计上完全不同,从实际应用的角度来看,VB。NET是一种新语言。 在这里,Microsoft决定给开发人员另一个选择—— 专门用于。NET、具有新起点的语言, 即Visual C# 。NET。Microsoft在正式场合把C#描述为一种简单、现代、面向对象、类型非常安全、派生于C和C++的编程语言。大多数独立的评论员对其说法是“派生于C、 C++ 和Java”。这种描述在技术上是非常准确的,但没有涉及到该语言的真正优点。从语法上看,C#非常类似于C++和Java,许多关键字都是相同的,C#也使用类似于C++和Java的块结构,并用括号({})来标记代码块,用分号分隔各行语句。对C#代码的第一印象是它非常类似于C++或Java代码。但在这些表面上的类似性后面,C#学习起来要比C++容易得多,但比Java难一些。其设计与现代开发工具的适应性要比其他语言更高,它同时具有Visual Basic的易用性、高性能以及C++的低级内存访问性。 C#的应用英文文献和中文翻译(2):http://www.youerw.com/fanyi/lunwen_87418.html

------分隔线----------------------------
推荐内容