Presentation is loading. Please wait.

Presentation is loading. Please wait.

MICROSOFT.NET INTEROPERABILITY BLACK BELT – TIPS & TRICKS Vjekoslav Babic (Fortempo)

Similar presentations


Presentation on theme: "MICROSOFT.NET INTEROPERABILITY BLACK BELT – TIPS & TRICKS Vjekoslav Babic (Fortempo)"— Presentation transcript:

1 MICROSOFT.NET INTEROPERABILITY BLACK BELT – TIPS & TRICKS Vjekoslav Babic (Fortempo)

2 Vjekoslav Babić consultant, trainer, blogger, author Blog:vjeko.com E-mail:vjeko@vjeko.com Author of many How Do I… videos for MSDN and PartnerSource for NAV 2013 and NAV 2013 R2 Co-author of “Implementing Microsoft Dynamics NAV 2009” book ABOUT ME

3 HOW USERS SEE PROGRAMMERS

4 HOW PROGRAMMERS SEE USERS

5 NAV PROGRAMMER PROGRAMMING IN C/AL

6 NAV PROGRAMMER PROGRAMMING IN.NET

7 Take.NET Interoperability… … slice it to ribbons… … and then glue it all back together AGENDA

8 WHAT’S WRONG WITH.NET INTEROPERABILITY?

9

10 Part 1 Strong Type

11 IEnumerable

12 foreach

13 for (int i = 0; i < foos.Count(); i++) { Foo f = foos.ElementAt(i); // Do something } foreach (Foo f in foos) { // Do something }

14 for (int i = 0; i < foos.Count(); i++) { Foo f = foos.ElementAt(i); // Do something } foreach (Foo f in foos) { // Do something }

15 DON’T DO THIS FOR i := 0 TO Foos.Count - 1 DO BEGIN Foo := Foos.Item(i); END;

16 DO THIS INSTEAD Enumerator := Foos.GetEnumerator; WHILE Enumerator.MoveNext DO BEGIN Foo := Enumerator.Current; END;

17 Demo 1 Simple List

18 System.Object

19 Demo 2 Not That Simple List

20 Demo 3 Very Rude Codeunit

21 Demo 4 A Nice Idea That Fails

22 Reflection

23 System.Type

24 System.Activator

25 Demo 5 System.Activator

26 Demo 6 Strongly-Typed Generics

27 Demo 7 A Nice Idea That Works

28 Part 2 Error Handling

29 Demo 8 File.Delete

30 try..catch

31 Demo 9 Try..Catch

32 Part 3 Dependencies

33 Demo 10 Tight Coupling

34 PRS.NET

35 Demo 11 Facade

36 But there is an even better way.

37 Inversion of Control Pattern

38 Demo 12 Inversion of Control

39 Quick Tip Simple GAC Deployment

40 Part 4 Auto-Deployment

41 Demo 13 Client/Server

42 Demo 14 Auto-Deployment

43

44

45


Download ppt "MICROSOFT.NET INTEROPERABILITY BLACK BELT – TIPS & TRICKS Vjekoslav Babic (Fortempo)"

Similar presentations


Ads by Google