What’s New with Visual Studio and C#?

Presenter: Barbara Doyle, Jacksonville University This session will highlight some of the cool new features included with the latest Visual Studio release. New C# 6.0 object-oriented language features, like primary constructors and read-only auto properties, will be illustrated. Learn how to do shorthand initialization of properties. See how to eliminate fully qualifying calls to public static methods of a type. See some of the new C# syntactical sugar features like digit separators. Experience new IDE features like quick fixes and code folding. See the smarter IntelliSense's supports for syntax highlighting and code completion. Explore the new modern refactoring tools available with the latest version of Visual Studio. Since the greatest amount of development time for C# and Visual Basic developers is spent working with Visual Studio, this session is aimed toward increasing developer productivity and enhancing the overall user experience.

1.0x

What’s New with Visual Studio and C#?

Created 2 years ago

Duration 0:00:00
lesson view count 202
Presenter: Barbara Doyle, Jacksonville University This session will highlight some of the cool new features included with the latest Visual Studio release. New C# 6.0 object-oriented language features, like primary constructors and read-only auto properties, will be illustrated. Learn how to do shorthand initialization of properties. See how to eliminate fully qualifying calls to public static methods of a type. See some of the new C# syntactical sugar features like digit separators. Experience new IDE features like quick fixes and code folding. See the smarter IntelliSense's supports for syntax highlighting and code completion. Explore the new modern refactoring tools available with the latest version of Visual Studio. Since the greatest amount of development time for C# and Visual Basic developers is spent working with Visual Studio, this session is aimed toward increasing developer productivity and enhancing the overall user experience.
Select the file type you wish to download
Slide Content
  1. What’s New with Visual Studio and C#

    Slide 1 - What’s New with Visual Studio and C#

    • Barbara Doyle
    • Jacksonville University
  2. Game Plan

    Slide 2 - Game Plan

    • .NET Journey … some nostalgia
    • Where are we now?
    • Recent announcements…
    • Xamarin partnership
    • New Visual Studio enhancements
    • C# 6.0 language features
    • Future
    • 2015 Cengage Learning Computing Conference
    • 2
  3. 2015 Cengage Learning Computing Conference

    Slide 3 - 2015 Cengage Learning Computing Conference

    • 3
  4. 2015 Cengage Learning Computing Conference

    Slide 4 - 2015 Cengage Learning Computing Conference

    • 4
    • C# 6.0
    • .NET Framework
    • 4.6
  5. Recent Announcements…

    Slide 5 - Recent Announcements…

    • Visual Studio “Community Edition”
    • .NET Framework 4.6 to be shipped with VS 2015
    • Cross Platform Development
    • Xamarin Partnership
    • 2015 Cengage Learning Computing Conference
    • 5
  6. 2015 Cengage Learning Computing Conference

    Slide 6 - 2015 Cengage Learning Computing Conference

    • 6
  7. Recent Announcements…

    Slide 7 - Recent Announcements…

    • Open-source
    • CLR, Just-In-Time Compiler (JIT), Garbage Collector (GC), and core .NET base class libraries
    • Several key components, like ASP.NET and the C# compiler previously open sourced
    • .NET Compiler Platform (“Roslyn”) provides open source C# and Visual Basic compilers with rich code analysis APIs
    • 2015 Cengage Learning Computing Conference
    • 7
  8. Recent Announcements…

    Slide 8 - Recent Announcements…

    • 2015 Cengage Learning Computing Conference
    • 8
    • .NET Core Framework on Linux and OSX (Mac)
  9. Recent Announcements…

    Slide 9 - Recent Announcements…

    • .NET Core project is under the stewardship of the .NET Foundation
    • Transferring source to GitHub
    • 2015 Cengage Learning Computing Conference
    • 9
  10. 2015 Cengage Learning Computing Conference

    Slide 10 - 2015 Cengage Learning Computing Conference

    • 10
    • GitHub
    • https://github.com/Microsoft/dotnet
    • Open Source Repository
  11. Xamarin Partnership

    Slide 11 - Xamarin Partnership

    • 2015 Cengage Learning Computing Conference
    • 11
  12. Xamarin Partnership

    Slide 12 - Xamarin Partnership

    • Little Xamarin history
    • Sponsor Mono community
    • Xamarin already produces a cross-platform open source .NET framework based on C#
    • Making it easier to add Xamarin tools to support iOS and Android development alongside Windows apps
    • 2015 Cengage Learning Computing Conference
    • 12
  13. New Visual Studio Enhancements

    Slide 13 - New Visual Studio Enhancements

    • No major chances to new editor
    • Menus now appear in Title Case style instead of all capitals
    • Windows touch gestures now supported
    • New project type templates
    • Cross platform Development
    • Visual Studio Emulator for Android
    • Empty shared project template
    • 2015 Cengage Learning Computing Conference
    • 13
  14. New Visual Studio Enhancements

    Slide 14 - New Visual Studio Enhancements

    • Debugging Tools
    • New Breakpoint Settings Window
    • PerfTips (tooltips with performance information)
    • Few new code editor user interface editing tools
    • Window layouts
    • Quick action light bulb icon
    • Colorized tooltips
    • Simplified rename
    • Enhanced Peek Definition
    • 2015 Cengage Learning Computing Conference
    • 14
  15. Touch Support Gestures Available

    Slide 15 - Touch Support Gestures Available

    • 2015 Cengage Learning Computing Conference
    • 15
    • Scroll (tap-and-drag on the editor surface on the regular and enhanced scrollbars)
    • Pinch-to-Zoom in/out
    • Select a whole line by tapping in the editor margin
    • Select words by double-tapping them
    • Invoke the editor context menu by pressing-and-holding on words
  16. New Project Type Templates

    Slide 16 - New Project Type Templates

    • 2015 Cengage Learning Computing Conference
    • 16
    • Over 40 templates
    • with current VS 2015 CTP release + Xamarin install
  17. New Breakpoint Settings Window

    Slide 17 - New Breakpoint Settings Window

    • Two new icons appear with breakpoint
    • 2015 Cengage Learning Computing Conference
    • 17
  18. New Breakpoint Settings Window

    Slide 18 - New Breakpoint Settings Window

    • Settings opens Peek window
    • 2015 Cengage Learning Computing Conference
    • 18
  19. PerfTips

    Slide 19 - PerfTips

    • Performance Information at-a-glance
    • Step over lines of code (F11) or run from breakpoint to breakpoint debugger displays PerfTip
    • Clicking on time, displays Diagnostics Tools windows revealing CPU and Memory usage
    • 2015 Cengage Learning Computing Conference
    • 19
  20. New Code Editor User Interface Tools

    Slide 20 - New Code Editor User Interface Tools

    • No major improvements … few changes
    • Configure and save window layouts
    • Quick action light bulb icon
    • Colorized tooltips
    • Simplified rename
    • Enhanced Peek Definition
    • 2015 Cengage Learning Computing Conference
    • 20
  21. Configure and Save Windows Layouts

    Slide 21 - Configure and Save Windows Layouts

    • 2015 Cengage Learning Computing Conference
    • 21
    • Console App
    • Windows App
  22. Quick Action Light Bulb Icon

    Slide 22 - Quick Action Light Bulb Icon

    • Streamlines Code
    • 2015 Cengage Learning Computing Conference
    • 22
  23. Quick Action Light Bulb Icon

    Slide 23 - Quick Action Light Bulb Icon

    • 2015 Cengage Learning Computing Conference
    • 23
  24. Quick Action Light Bulb Icon

    Slide 24 - Quick Action Light Bulb Icon

    • Provides preview of changes
    • 2015 Cengage Learning Computing Conference
    • 24
  25. Quick Action Light Bulb Icon

    Slide 25 - Quick Action Light Bulb Icon

    • Syntax Help
    • 2015 Cengage Learning Computing Conference
    • 25
  26. Colorized Tooltips

    Slide 26 - Colorized Tooltips

    • Hover over collapsed code to pop up tooltip in color
    • 2015 Cengage Learning Computing Conference
    • 26
  27. Colorized Tooltips

    Slide 27 - Colorized Tooltips

    • Keywords shown in blue within tooltip
    • Hover over methods to see its signature in color
    • 2015 Cengage Learning Computing Conference
    • 27
  28. Simplified Rename

    Slide 28 - Simplified Rename

    • 2015 Cengage Learning Computing Conference
    • 28
  29. Enhanced Peek Definition

    Slide 29 - Enhanced Peek Definition

    • 2015 Cengage Learning Computing Conference
    • 29
    • Bring definition of method or class into file
  30. Enhanced Peek Definition

    Slide 30 - Enhanced Peek Definition

    • Peek released as part of Visual Studio 2013
    • 2015 Cengage Learning Computing Conference
    • 30
  31. C# 6.0 Language Features

    Slide 31 - C# 6.0 Language Features

    • Current Language Specification C# 5.0
    • Released August 2012
    • No BIG new concepts with 6.0
    • Auto-properties can have initializers and no longer require setters
    • Constructors can assign values to read-only properties
    • 2015 Cengage Learning Computing Conference
    • 31
  32. C# 6.0 Language Features

    Slide 32 - C# 6.0 Language Features

    • Many small features added
    • Using clauses for static classes bring static members directly into scope
    • Exception can have filters
    • New string interpolation
    • Null conditional operator added
    • 2015 Cengage Learning Computing Conference
    • 32
  33. Getter-only Auto-properties

    Slide 33 - Getter-only Auto-properties

    • 2015 Cengage Learning Computing Conference
    • 33
  34. Auto-property Initializers

    Slide 34 - Auto-property Initializers

    • 2015 Cengage Learning Computing Conference
    • 34
  35. Assignment to Read-only Auto-properties in Constructors

    Slide 35 - Assignment to Read-only Auto-properties in Constructors

    • 2015 Cengage Learning Computing Conference
    • 35
  36. Static using Statements

    Slide 36 - Static using Statements

    • 2015 Cengage Learning Computing Conference
    • 36
    • Without using static directive, would write
    • Console.Clear( );
    • inValue = Console.ReadLine( );
    • Console.WriteLine(ln );
    • Console.ReadKey( );
  37. Static using Statements

    Slide 37 - Static using Statements

    • Static Math class has number of static members
    • using static System.Math;
    • Instead of writing
    • ans = Math.Pow(arg1, 3);
    • with additional using statement, write:
    • ans = Pow(arg, 3);
    • 2015 Cengage Learning Computing Conference
    • 37
  38. Exception Filters

    Slide 38 - Exception Filters

    • Add an if statement to catch clause for a try…catch…finally statement
    • // body of catch clause
    • 2015 Cengage Learning Computing Conference
    • 38
  39. String Interpolation

    Slide 39 - String Interpolation

    • Previously would have written:
    • return String.Format("{0} {1}\nAmt: {2 :F2}", first, last, amt);
    • 2015 Cengage Learning Computing Conference
    • 39
  40. Null Propagating Operator ?.

    Slide 40 - Null Propagating Operator ?.

    • Saves you from writing lots of if statements
    • 2015 Cengage Learning Computing Conference
    • 40
  41. Available for fall classes

    Slide 41 - Available for fall classes

    • Targets C# 6.0 with Visual Studio 2015
    • 2015 Cengage Learning Computing Conference
    • 41
  42. Resources

    Slide 42 - Resources

    • Languages features in C# 6 and VB 14 - https://github.com/dotnet/roslyn/wiki/Languages-features-in-C%23-6-and-VB-14
    • VS2015 Preview features – http://www.visualstudio.com/en-us/news/vs2015-preview-vs.aspx
    • Barbara Doyle, Jacksonville University email: bdoyle@ju.edu
    • 2015 Cengage Learning Computing Conference
    • 42
  43. Summing up!

    Slide 43 - Summing up!

    • New Visual Studio release anticipated Late Spring/Summer 2015
    • Free Community Edition
    • Heavy emphasis on cross-platform development opportunities
    • Xamarin partnership
    • Free student access with registration
    • No major enhancements with VS 2015 or C# 6.0
    • Everything is still subject to change…still a preview after all
    • 2015 Cengage Learning Computing Conference
    • 43