Microsoft Visual J# .NET Tony Goodhew Product Manager Visual J# .NET Microsoft Corporation

17.05.2016
TO USE OR PRINT this presentation click : http://videosliders.com/r/293 ============================================================== Microsoft Visual J# .NETTony GoodhewProduct ManagerVisual J# .NETMicrosoft Corporation ,Product Goals Provide a Java language for the Microsoft® .NET Bring the power and richness of the .NET Frameworks to programmers using Java Carry forward existing skill and code investments Seamless upgrade path for Visual J++® developers Full integration with Visual Studio® .NET ,Visual Studio .NET VB C++ C# JScript J# Common Language Specification ASP.NET Web Forms Web Services Windows Forms ADO.NET and XML Base Class Library Common Language Runtime Operating System .NET Framework ,J# Compiler J# IDE in VS Visual Studio.NET JBIMP J# Class Libraries (JDK Subset) COM Inter-op and WFC .NET Frameworks (ADO.NET, ASP.NET, Windows Forms, Web Services …) Common Language Runtime Operating System Visual J# .NET ,Technology Overview Java language Microsoft Visual J#™ .NET compiler Support for .NET CLS Properties, events, and delegates Class libraries Subset of JDK 1.1.4 class libraries Base libraries, collection classes AWT, JDBC, Beans Visual J++ support: Java/COM, J/Direct, WFC ,Technology Overview (2) Binary converter Class files to .NET assemblies Full access to the .NET Framework ASP.NET, ADO.NET, Windows Forms, and so forth Integrated with Visual Studio .NET IntelliSense®, designers, debugger Usability improvements ,Visual J# .NET Compiler Compiles Java-language sources to Microsoft intermediate language (MSIL) Supports all key features of the Java language Fully supports consuming .NET Framework Preserves Java language, scoping, and class hierarchy semantics Supports extensions in Visual J++ J/Direct Attributes ,CompilerLanguage Support Classes Inner classes, nested classes, anonymous classes, local classes Throws clause and checked exceptions Static initializer blocks, synchronized blocks .NET CLS compliance Full CLS consumer Limited CLS extender ,Compiler CLS Consumer Natural Java-language syntax for accessing Properties – through property accessor methods Delegates – permits creation of delegates over any Visual J# method Events – through event accessor methods Enums Value types Attaching attributes ,Consuming .NET Meta Data Properties – use property accessors form.set_Text(“Hello”); form.get_Text(); Delegates – just create the delegate over a Visual J# method myHandler = new EventHandler(OnClickOK); Events – use event accessors okButton.add_Click(myHandler); okButton.remove_Click(myHandler); ,Consuming .NET Meta Data Value Types and Enums Using value types Automatic boxing and unboxing DateTime dt = new DateTime(); dt = DateTime.Parse(“01/01/2002 12:00”); System.Object obj = dt; // This boxes value type dt DateTime dt2 = (DateTime) obj; // This unboxes obj Using enums Casting to underlying primitive type int iStyle = (int) AnchorStyle.Left; AnchorStyle style = (AnchorSytle) iStyle; Using bit

Похожие видео