2008.NET iSDC & RONUA Workshop, November 10 th Mark Blomsma Software architect Develop-One
Agenda Introduction Objectives Basic development cycle Demo Progamming gadgets Settings and gadgets Security Demo 08-nov-2007© 2007 Develop-One2
Mark Blomsma Professional developer since 1992 Microsoft Certified Professional (MCP) Microsoft Most Valuable Professional (MVP) for four years running Author, Speaker & Software Architect at Develop-One Instructor for DevelopMentor 08-nov-2007© 2007 Develop-One3
Objectives Demo a bunch of stuff C# 3.0 VSTO - Outlook AddIn LINQ to SQL WCF 08-nov-2007© 2007 Develop-One4
C# 3.0 – Automatic Properties 08-nov-2007© 2007 Develop-One5 private string _address; public string Address { get { return _address; } set { _address = value; } Old: New: public string Address {get; set;}
C# 3.0 – Object Initializers 08-nov-2007© 2007 Develop-One6 void Main() { Customer c = new Customer(); c.Name = “Mark”; c.Age = 35; } Old: New: void Main() { Customer c = new Customer() { Name = “Mark”, Age = 35 }; }
C# 3.0 – Anonymous Types 08-nov-2007© 2007 Develop-One7 void Main() { var anObject = new { Name = “Mark”, Age = 35 }; }
C# 3.0 – Extension Methods 08-nov-2007© 2007 Develop-One8 public static class MyExtensions { public static void Say( this object o ) { … }
Demo Build an ‘Hello World!’ Outlook AddIn. 08-nov-2007© 2007 Develop-One9
LINQ It is a set of language changes and API's that allow you to write SQL-like queries natively in your chosen.NET programming language. 08-nov-2007© 2007 Develop-One10 void Main() { MyDatabase db = new MyDatabase(); var customers = from c in db.customers select c.Name, c.Address; }
Demo LINQ to SQL 08-nov-2007© 2007 Develop-One11
Demo Windows Communication Foundation 08-nov-2007© 2007 Develop-One12
Resources nov-2007© 2007 Develop-One13
08-nov-2007© 2007 Develop-One14