Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Visual Basic 10

Visual Basic 10

017286889e25c87cb44b20ceca2d1d79?s=128

Daron Yondem

December 02, 2009
Tweet

Transcript

  1.  Daron Yöndem Microsoft Regional Director Silverlight MVP

  2. Visual Basic 1.0-3.0 Visual Basic 4.0-6.0 Visual Basic 7.0-9.0 Visual

    Basic 10.0 Visual Basic 11.0+
  3. Hepimiz kardeşiz!

  4. Declarative Concurrent Dynamic

  5. Ne Nasıl Imperative Declarative

  6. Dynamic Diller Simple and succinct Implicitly typed Meta-programming No compilation

    Static Diller Robust Performant Intelligent tools Better scaling
  7. Property FirstName As String Property LastName As String Initializers: Property

    ID As Integer = -1 Property Suppliers As New List(Of Supplier)
  8. Dim x As New List(Of Integer) From {1, 2, 3}

    Dim list As New Dictionary(Of Integer, String) From {{1, “Bart”}, {2, “Lisa”}, {3, “Homer”}} Array Literals: Dim a = {1, 2, 3} 'infers Integer() Dim b = {1, 2, 3.5} 'infers Double()
  9. Dim items = {1, 2, 3, 4, 5} Array.ForEach(items, Sub(n)

    Console.WriteLine(n)) Array.ForEach(items, Sub(n) If n Mod 2 = 0 Then Console.WriteLine(n) End Sub) 'Count the number of even items in the array Dim total = items.Count(Function(n)
  10. <Attribute()> Function Go( ByVal x As Integer, ByVal y As

    Integer ) Dim query = From n In { 123, 456, }
  11. Python Binder Ruby Binder COM Binder JavaScript Binder Object Binder

    Dynamic Language Runtime Expression Trees Dynamic Dispatch Call Site Caching IronPython IronRuby C# VB.NET Others…
  12. Dim apples As IEnumerable(Of Apple) = New List(Of Apple) 'Covariance

    (Apple inherits from Fruit) Dim fruits As IEnumerable(Of Fruit) = apples 'Contravariance - Func(Of In T, Out R) Dim predicate As Func(Of Fruit, Boolean) = Function(f) f.Color = "Red" apples.Where(predicate)
  13. None
  14. None