MSDN Magazine - December 2007 - (Page 12) *]QTL QV\MZIK\Q^M LQIOZIU[ MI[QMZ \PIV aW] M^MZ QUIOQVML 8W_MZN]T Ð M`QJTM IVL MI[a\W][M and runtime regardless of the programming language used, the differences between .NET programming languages are only skin deep. This language parity lessens the learning curve for developers and enables seamless integration of .NET components whether or not they were created in the same language. While popular .NET programming languages like Visual Basic® and C# are equivalent in the eyes of the .NET runtime, they are not necessarily so in the eyes of developers, who may be adept in one language but not in the other. Such a language barrier can prove limiting when inheriting code or a legacy application at work or when studying code snippets in books or on the Web that are not in your language of choice. The optimal solution is to become that’s not always possible. The next-best option is to use an automated code converter like Tangible Software Solution’s Instant C# version 2.8 or Instant VB version 2.0. Instant C# quickly converts Visual Basic code to C#, while Instant VB converts C# to Visual Basic. Both products can convert a snippet of code, an ASP.NET page, all the code within Studio project. While Visual Basic and C# compile into equivalent intermediate language, there is “syntactic sugar” unique to each language. Instant C# and Instant VB include options that let you specify how to handle these differences when converting. For example, when converting Visual Basic code to C# code, Instant C# allows you to indicate whether to convert Visual Basic functions—InStr, Mid, StrComp, and so on—to .NET Framework equivalents or whether to leave them as is and import the Microsoft.VisualBasic namespace. Likewise, you can also indicate whether to convert the Visual Basic vbCrLf keyword to System.Environment.NewLine or “\r\n” in the resulting C# code. And the code formatting options allow you to dictate whether to include braces for single-line block statements and, if so, whether the opening brace should appear on its own line. options are the post-conversion replacement settings. You can specify an unlimited number of regular expression patterns and corresponding replacement text and Instant C# and Instant VB will apply these substitutions to the converted code. Despite the underlying similarities between Visual Basic and C#, there are slight but profound differences that make a 100 percent accurate conversion impossible. The good news is that Instant C# and Instant VB have a successful conversion rate—over 99.9 percent—on code samples provided by Microsoft. Price: $179 for Instant C# or Instant VB. tangiblesoftwaresolutions.com ,W_VTWIL ?Q\P .]TT ;]XXWZ\ cVReV Tfde`^ Z_eVcRTeZgV UZRXcR^d _Veh`c\ VUZe`cd h`c\W]`hd W]`hTYRced R_U UVdZX_ e``]d 7`c hVS dVcgVcd `c ]`TR] Raa]ZTReZ`_d :e|d VRdj e`fdV R_U gVcj W]ViZS]V HV|cV eYV WZcde UVgV]`aVc `W UZRXcR^^Z_X T`^a`_V_ed R_U deZ]] eYV SVde 7Z_U `fe W`c j`fcdV]W+ U`h_]`RU `fc 7C66 Wf]]j Wf_TeZ`_R] VgR]fReZ`_ \Ze hZeY Wf]] dfaa`ce Re hhh_h``UdT`^ .:-- Manage Multiple Desktop Monitors One of the most cost-effective ways to improve a developer’s productivity is to give him another monitor. Developers often face tasks that involve simultaneously processing information from two windows: a running application and the debugger window is a classic example. Having two (or more) monitors at your workstation is priceless when working on such tasks since it allows you to have V_WWL[KWU 12 msdnmagazine Toolbox The UltraMan Smart Taskbar Extends the Taskbar across All Screens http://tangiblesoftwaresolutions.com http://www.nwoods.com
For optimal viewing of this digital publication, please enable JavaScript and then refresh the page. If you would like to try to load the digital publication without using Flash Player detection, please click here.