<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>.NET Framework</title><link>http://community.visual-basic.it/alessandro/category/169.aspx</link><description>in questa sezione parliamo delle classi del Framework, di come utilizzarle e dell'interoperabilità fra linguaggi!</description><managingEditor>Alessandro Del Sole</managingEditor><dc:language>it-IT</dc:language><generator>.Text Version 0.95.2004.102</generator><item><dc:creator>Alessandro Del Sole</dc:creator><title>Evento gratuito "Visual Basic Tips &amp; Tricks Community Day"</title><link>http://community.visual-basic.it/alessandro/archive/2010/03/03/27566.aspx</link><pubDate>Wed, 03 Mar 2010 19:43:00 GMT</pubDate><guid>http://community.visual-basic.it/alessandro/archive/2010/03/03/27566.aspx</guid><wfw:comment>http://community.visual-basic.it/alessandro/comments/27566.aspx</wfw:comment><comments>http://community.visual-basic.it/alessandro/archive/2010/03/03/27566.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://community.visual-basic.it/alessandro/comments/commentRss/27566.aspx</wfw:commentRss><trackback:ping>http://community.visual-basic.it/alessandro/services/trackbacks/27566.aspx</trackback:ping><description>&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Volevo segnalarvi che il giorno 18 marzo p.v. la nostra community terr&amp;#224; un evento gratuito, con tre sessioni pomeridiane dedicate ad alcune interessanti tecnologie Microsoft per sviluppatori. L'incontro si terr&amp;#224; a &lt;FONT color=#008000&gt;Milano&lt;/FONT&gt; presso la sede della societ&amp;#224; &lt;A href="http://www.objectway.it/IT/default.asp"&gt;&lt;FONT color=#008000&gt;ObjectWay&lt;/FONT&gt;&lt;/A&gt; e avr&amp;#224; inizio alle ore 14 per la registrazione. Vi riassumo l'agenda, a fine post trovate i link per i dettagli:&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Ore 14.00 - 14.30: Registrazione&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Ore 14.30 - 15.30: "&lt;FONT color=#000000&gt;TFS 2010 Basic per singoli sviluppatori&lt;/FONT&gt;" - speaker, &lt;FONT color=#008000&gt;il &lt;/FONT&gt;&lt;FONT color=#008000&gt;sottoscritto&lt;/FONT&gt; :-)&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Ore 15.30 - 16.30: "&lt;FONT color=#000000&gt;Sviluppare per Windows 7 con Visual Basic 2010&lt;/FONT&gt;" - speaker &lt;A href="http://www.wpfitalia.it"&gt;&lt;FONT color=#008000&gt;Renato Marzaro&lt;/FONT&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Ore 16.30 - 17.00: Coffe break&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Ore 17.00 - 18.00: "&lt;FONT color=#000000&gt;L'accesso ai dati&amp;nbsp;in VB 2010 con ADO.NET Entity Framework 4 e SQL Server 2008&lt;/FONT&gt;" - speaker &lt;A href="http://community.visual-basic.it/tdj"&gt;&lt;FONT color=#008000&gt;Antonio Catucci&lt;/FONT&gt;&lt;/A&gt; (Microsoft MVP)&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;A questo &lt;A href="http://www.visual-basic.it/evento.asp"&gt;&lt;FONT color=#ff0000&gt;indirizzo&lt;/FONT&gt;&lt;/A&gt; trovate tutti i dettagli dell'incontro pi&amp;#249; l'abstract delle sessioni, mentre a quest'altro &lt;A href="http://www.objectway.it/IT/contacts.asp"&gt;&lt;FONT color=#a52a2a&gt;indirizzo&lt;/FONT&gt;&lt;/A&gt; trovate le informazioni su come raggiungere il luogo dell'evento.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;I posti sono limitati, per cui vi consiglio di affrettarvi ad iscrivervi :-) Ci vediamo il 18!&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#008000 size=2 face=Verdana&gt;&lt;STRONG&gt;&lt;EM&gt;Alessandro&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src ="http://community.visual-basic.it/alessandro/aggbug/27566.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Alessandro Del Sole</dc:creator><title>Una bella soddisfazione: MVP Of The Year 2009 per Visual Basic</title><link>http://community.visual-basic.it/alessandro/archive/2010/02/22/27474.aspx</link><pubDate>Mon, 22 Feb 2010 23:30:00 GMT</pubDate><guid>http://community.visual-basic.it/alessandro/archive/2010/02/22/27474.aspx</guid><wfw:comment>http://community.visual-basic.it/alessandro/comments/27474.aspx</wfw:comment><comments>http://community.visual-basic.it/alessandro/archive/2010/02/22/27474.aspx#Feedback</comments><slash:comments>35</slash:comments><wfw:commentRss>http://community.visual-basic.it/alessandro/comments/commentRss/27474.aspx</wfw:commentRss><trackback:ping>http://community.visual-basic.it/alessandro/services/trackbacks/27474.aspx</trackback:ping><description>&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Durante l'&lt;FONT color=#a52a2a&gt;MVP Global Summit&lt;/FONT&gt; tenutosi a Bellevue e Redmond, conclusosi pochi giorni fa, ho avuto l'immensa soddisfazione di ricevere la comunicazione di essere stato votato come &lt;FONT color=#ff0000&gt;MVP Of The Year 2009&lt;/FONT&gt; per la categoria &lt;FONT color=#000000&gt;Visual Basic&lt;/FONT&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Ho scritto "votato" perch&amp;#232; tale riconoscimento &amp;#232; arrivato dall'espressione del giudizio degli altri MVP di Visual Basic di tutto il mondo e dal team che lo produce. &lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Permettetemi di essere fiero di questo traguardo e di voler rendere pubblica la mia emozione: essere votati dai propri "colleghi" MVP sparsi nei 5 continenti (che ringrazio di cuore), con nomi&amp;nbsp;veramente blasonati,&amp;nbsp;e dal gruppo di prodotto &amp;#232; una gioia difficile da spiegare. Tutto ci&amp;#242; che ho fatto in questo strano mondo,&amp;nbsp;&amp;#232; sempre stato dettato da una grandissima passione e spero che sia questa&amp;nbsp;la connotazione che emerge da blog, video, articoli e tutto il resto.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Approfitto anche per ringraziare tutti coloro che hanno contribuito, ai vari livelli, ad organizzare l'&lt;FONT color=#000000&gt;MVP Global Summit 2010&lt;/FONT&gt;. Oltre ad essere un evento importante, &amp;#232; un evento in cui si respira un clima speciale, che nessuna conferenza pu&amp;#242; equiparare. Un clima pieno di emozioni, in cui sicuramente le sessioni tecniche sono particolarmente interessanti ma, soprattutto, c'&amp;#232; la possibilit&amp;#224; di incontrare gli amici MVP e di Microsoft provenienti da tutto il mondo, di condividere le proprie esperienze professionali e personali cos&amp;#236; come di trascorrere momenti goliardici.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Un grazie di cuore alle persone che hanno riposto questa stima e fiducia in me, che spero di meritare e di non deludere. Se volete qualche info in pi&amp;#249; su come ci&amp;#242; sia avvenuto, &lt;FONT color=#008000&gt;Tim Heuer&lt;/FONT&gt; ha scritto un &lt;A href="http://timheuer.com/blog/archive/2010/02/18/silverlight-mvp-of-the-year-2009.aspx"&gt;&lt;FONT color=#ff0000&gt;post&lt;/FONT&gt;&lt;/A&gt; in cui ha spiegato il tutto in merito ai ragazzi di Silverlight.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Un immancabile ma fondamentale ringraziamento a &lt;A href="http://www.visual-basic.it"&gt;&lt;FONT color=#000000&gt;Visual Basic Tips &amp;amp; Tricks&lt;/FONT&gt;&lt;/A&gt;: se questa community non fosse esistita, probabilmente ora non starei scrivendo questo post.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#008000 size=2 face=Verdana&gt;&lt;STRONG&gt;&lt;EM&gt;Alessandro&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src ="http://community.visual-basic.it/alessandro/aggbug/27474.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Alessandro Del Sole</dc:creator><title>Newsletter gratuita "MSDN Flash"</title><link>http://community.visual-basic.it/alessandro/archive/2010/01/26/27309.aspx</link><pubDate>Tue, 26 Jan 2010 18:25:00 GMT</pubDate><guid>http://community.visual-basic.it/alessandro/archive/2010/01/26/27309.aspx</guid><wfw:comment>http://community.visual-basic.it/alessandro/comments/27309.aspx</wfw:comment><comments>http://community.visual-basic.it/alessandro/archive/2010/01/26/27309.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://community.visual-basic.it/alessandro/comments/commentRss/27309.aspx</wfw:commentRss><trackback:ping>http://community.visual-basic.it/alessandro/services/trackbacks/27309.aspx</trackback:ping><description>&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Il mondo della tecnologia corre molto veloce e spesso rimanere aggiornati non &amp;#232; facile. In particolare, conoscere le novit&amp;#224; sulle tecnologie Microsoft diventa fondamentale nel momento in cui le utilizzate per il vostro lavoro di sviluppatori. Niente di pi&amp;#249; semplice, quindi, che iscrivervi alla &lt;A href="https://profile.microsoft.com/RegSysProfileCenter/wizard.aspx?wizid=1ba3e78d-9fcd-4405-a972-0f2a95dc6fed&amp;amp;lcid=1040"&gt;&lt;FONT color=#ff0000&gt;Newsletter MSDN Flash&lt;/FONT&gt;&lt;/A&gt;, una risorsa gratuita che porter&amp;#224; direttamente nella vostra e-mail tutte le ultime novit&amp;#224; sui prodotti Microsoft per sviluppatori, inclusi download utili (Beta, Trial, SDK, patch e molto altro), capitoli gratuiti estratti da libri tecnici, video formativi e notizie inerenti eventi tecnici tenuti da Microsoft Italia e dalle Community italiane. Tutto questo in un semplice click:&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;&lt;A href="https://profile.microsoft.com/RegSysProfileCenter/wizard.aspx?wizid=1ba3e78d-9fcd-4405-a972-0f2a95dc6fed&amp;amp;lcid=1040"&gt;&lt;IMG src="/images/community_visual-basic_it/diego/78/o_msdn_flash_300.gif"&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#008000 size=2 face=Verdana&gt;&lt;STRONG&gt;&lt;EM&gt;Alessandro&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src ="http://community.visual-basic.it/alessandro/aggbug/27309.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Alessandro Del Sole</dc:creator><title>Il mio libro "Visual Basic 2010 Unleashed" è in pre-vendita su Amazon</title><link>http://community.visual-basic.it/alessandro/archive/2010/01/23/27271.aspx</link><pubDate>Sat, 23 Jan 2010 21:27:00 GMT</pubDate><guid>http://community.visual-basic.it/alessandro/archive/2010/01/23/27271.aspx</guid><wfw:comment>http://community.visual-basic.it/alessandro/comments/27271.aspx</wfw:comment><comments>http://community.visual-basic.it/alessandro/archive/2010/01/23/27271.aspx#Feedback</comments><slash:comments>10</slash:comments><wfw:commentRss>http://community.visual-basic.it/alessandro/comments/commentRss/27271.aspx</wfw:commentRss><trackback:ping>http://community.visual-basic.it/alessandro/services/trackbacks/27271.aspx</trackback:ping><description>&lt;P&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Probabilmente coloro di voi che mi seguono con pi&amp;#249; assiduit&amp;#224; avranno notato un calo dei post su questo blog negli ultimi mesi. In realt&amp;#224; sono stato impegnato su quello che &amp;#232; sicuramente il pi&amp;#249; grande lavoro informatico che ritengo di aver fatto nella mia vita, ossia la produzione del mio nuovo libro (e primo in lingua inglese)&amp;nbsp;intitolato &lt;FONT color=#ff0000&gt;Visual Basic 2010 Unleashed&lt;/FONT&gt; edito da &lt;A href="http://www.informit.com/imprint/index.aspx?st=61091"&gt;&lt;FONT color=#008000&gt;SAMS&lt;/FONT&gt;&lt;/A&gt;. &lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Anche se non &amp;#232; ancora uscito, &amp;#232; gi&amp;#224; possibile ordinarlo su &lt;FONT color=#000000&gt;Amazon&lt;/FONT&gt;, la importante libreria on-line. Per motivi contrattuali non posso ancora svelare nei dettagli il contenuto del libro, vi anticipo comunque che:&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;&amp;#232; in inglese :-)&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;circa&amp;nbsp;1000 pagine!&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;il target&amp;nbsp;&amp;#232; lo sviluppatore di esperienza intermedia/avanzata&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Il libro tratta approfonditamente il linguaggio &lt;FONT color=#008000&gt;Visual Basic 2010&lt;/FONT&gt; e mostra come utilizzarlo nei confronti delle pi&amp;#249; recenti tecnologie client e Web di Microsoft. Se volete curiosare, a questo &lt;A href="http://www.amazon.com/Visual-Basic-2010-Unleashed-Alessandro/dp/0672331004/ref=sr_1_2?ie=UTF8&amp;amp;s=books&amp;amp;qid=1264160032&amp;amp;sr=8-2"&gt;&lt;FONT color=#ff0000&gt;indirizzo&lt;/FONT&gt;&lt;/A&gt; ci sono i (pochi) dettagli per ora resi disponibili.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;A tra qualche tempo, per l'uscita ufficiale!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#008000 size=2 face=Verdana&gt;&lt;STRONG&gt;&lt;EM&gt;Alessandro&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src ="http://community.visual-basic.it/alessandro/aggbug/27271.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Alessandro Del Sole</dc:creator><title>Entity Framework, aggiornamento per .NET 4.0 Beta 2</title><link>http://community.visual-basic.it/alessandro/archive/2009/11/05/26857.aspx</link><pubDate>Thu, 05 Nov 2009 20:24:00 GMT</pubDate><guid>http://community.visual-basic.it/alessandro/archive/2009/11/05/26857.aspx</guid><wfw:comment>http://community.visual-basic.it/alessandro/comments/26857.aspx</wfw:comment><comments>http://community.visual-basic.it/alessandro/archive/2009/11/05/26857.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://community.visual-basic.it/alessandro/comments/commentRss/26857.aspx</wfw:commentRss><trackback:ping>http://community.visual-basic.it/alessandro/services/trackbacks/26857.aspx</trackback:ping><description>&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Il Team di ADO.NET ha &lt;A href="http://blogs.msdn.com/adonet/archive/2009/11/04/ado-net-entity-framework-community-technology-preview-released.aspx"&gt;&lt;FONT color=#008000&gt;annunciato&lt;/FONT&gt;&lt;/A&gt; ieri la disponibilit&amp;#224; di una nuova Community Technology Preview di &lt;FONT color=#000000&gt;ADO.NET Entity Framework 4&lt;/FONT&gt; per &lt;FONT color=#a52a2a&gt;Visual Studio 2010 Beta 2&lt;/FONT&gt;. &lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;I nuovi bit richiedono la preventiva installazione della Beta 2 di .NET Framework 4.0 ed aggiungono ad Entity Framework alcune caratteristiche relative principalmente alle funzionalit&amp;#224; di coding-only e self-tracking delle entit&amp;#224;, come meglio descritto nel post del Team stesso che si trova &lt;A href="http://blogs.msdn.com/adonet/archive/2009/11/04/ado-net-entity-framework-community-technology-preview-released.aspx"&gt;&lt;FONT color=#ff0000&gt;qui&lt;/FONT&gt;&lt;/A&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Potete scaricare la CTP da questo &lt;A href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=13fdfce4-7f92-438f-8058-b5b4041d0f01"&gt;&lt;FONT color=#ff0000&gt;indirizzo&lt;/FONT&gt;&lt;/A&gt; (sono poche centinaia di KBytes).&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#008000 size=2 face=Verdana&gt;&lt;STRONG&gt;&lt;EM&gt;Alessandro&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src ="http://community.visual-basic.it/alessandro/aggbug/26857.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Alessandro Del Sole</dc:creator><title>Visual Studio 2010 and .NET Framework 4 Training Kit - October Preview</title><link>http://community.visual-basic.it/alessandro/archive/2009/10/21/26751.aspx</link><pubDate>Wed, 21 Oct 2009 17:15:00 GMT</pubDate><guid>http://community.visual-basic.it/alessandro/archive/2009/10/21/26751.aspx</guid><wfw:comment>http://community.visual-basic.it/alessandro/comments/26751.aspx</wfw:comment><comments>http://community.visual-basic.it/alessandro/archive/2009/10/21/26751.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://community.visual-basic.it/alessandro/comments/commentRss/26751.aspx</wfw:commentRss><trackback:ping>http://community.visual-basic.it/alessandro/services/trackbacks/26751.aspx</trackback:ping><description>&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;E' disponibile per il download il &lt;A href="http://www.microsoft.com/downloads/details.aspx?familyid=752CB725-969B-4732-A383-ED5740F02E93&amp;amp;displaylang=en"&gt;&lt;FONT color=#ff0000&gt;training kit&lt;/FONT&gt;&lt;/A&gt; aggiornato per la &lt;FONT color=#008000&gt;Beta 2&lt;/FONT&gt; di &lt;FONT color=#a52a2a&gt;Visual Studio 2010&lt;/FONT&gt; e &lt;FONT color=#000000&gt;.NET Framework 4.0&lt;/FONT&gt;. Si tratta di un nutrito insieme di documentazione, esempi di codice, slide, che toccano tutte le novit&amp;#224; delle nuove versioni dell'ambiente di sviluppo Microsoft.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Giusto per citarne alcuni, ADO.NET Data Services 1.5, Parallel Programming, Entity Framework 4, Silverlight 3... il tutto gratuitamente.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;E' un must-have, vi consiglio davvero di scaricarlo. Disponibile &lt;A href="http://www.microsoft.com/downloads/details.aspx?familyid=752CB725-969B-4732-A383-ED5740F02E93&amp;amp;displaylang=en"&gt;&lt;FONT color=#ff0000&gt;qui&lt;/FONT&gt;&lt;/A&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#008000 size=2 face=Verdana&gt;&lt;STRONG&gt;&lt;EM&gt;Alessandro&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src ="http://community.visual-basic.it/alessandro/aggbug/26751.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Alessandro Del Sole</dc:creator><title>Nuovo look per i portali MSDN</title><link>http://community.visual-basic.it/alessandro/archive/2009/10/17/26715.aspx</link><pubDate>Sat, 17 Oct 2009 22:23:00 GMT</pubDate><guid>http://community.visual-basic.it/alessandro/archive/2009/10/17/26715.aspx</guid><wfw:comment>http://community.visual-basic.it/alessandro/comments/26715.aspx</wfw:comment><comments>http://community.visual-basic.it/alessandro/archive/2009/10/17/26715.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://community.visual-basic.it/alessandro/comments/commentRss/26715.aspx</wfw:commentRss><trackback:ping>http://community.visual-basic.it/alessandro/services/trackbacks/26715.aspx</trackback:ping><description>&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;&lt;A href="http://msdn.microsoft.com/"&gt;&lt;FONT color=#a52a2a&gt;MSDN&lt;/FONT&gt;&lt;/A&gt;, il portale Microsoft dedicato agli sviluppatori, offre ora una nuova e pi&amp;#249; funzionale veste grafica che permette una migliore fruizione dei contenuti oltre ad avere un'estetica decisamente nuova.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Non solo la &lt;A href="http://msdn.microsoft.com/en-us/default.aspx"&gt;&lt;FONT color=#008000&gt;pagina principale&lt;/FONT&gt;&lt;/A&gt; di MSDN, ma molti altri portali collegati (compresi i &lt;A href="http://social.msdn.microsoft.com/Forums/en-US/category/visualbasic"&gt;&lt;FONT color=#a52a2a&gt;forum&lt;/FONT&gt;&lt;/A&gt; in inglese) hanno il nuovo look. Se volete dare un'occhiata, qui ci sono alcuni link (che comunque vi consiglio di tenere sempre nei bookmark :-) ):&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#000000 size=2 face=Verdana&gt;&lt;A href="http://msdn.microsoft.com/en-us/default.aspx"&gt;&lt;FONT color=#000000&gt;MSDN&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;&lt;A href="http://msdn.microsoft.com/en-us/vbasic/default.aspx"&gt;&lt;FONT color=#000000&gt;Visual Basic Developer Center&lt;/FONT&gt;&lt;/A&gt; (dove troverete anche una vecchia conoscenza :D)&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;&lt;A href="http://csharp.net/"&gt;&lt;FONT color=#000000&gt;Visual C#&lt;/FONT&gt;&lt;/A&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;&lt;A href="http://fsharp.net/"&gt;&lt;FONT color=#000000&gt;Visual F#&lt;/FONT&gt;&lt;/A&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;&lt;A href="http://msdn.microsoft.com/it-it/vbasic/default.aspx"&gt;&lt;FONT color=#000000&gt;Visual Basic su MSDN Italia&lt;/FONT&gt;&lt;/A&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#008000 size=2 face=Verdana&gt;&lt;STRONG&gt;&lt;EM&gt;Alessandro&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;SCRIPT type=text/javascript src="http://tweetmeme.com/i/scripts/button.js"&gt;&lt;/SCRIPT&gt;
&lt;!-- AddThis Button BEGIN --&gt;&lt;A class=addthis_button href="http://www.addthis.com/bookmark.php?v=250&amp;amp;pub=xa-4ada2eca664d9f9b"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-TOP: 0px; BORDER-RIGHT: 0px" alt="Bookmark and Share" src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width=125 height=16&gt;&lt;/A&gt;
&lt;SCRIPT type=text/javascript src="http://s7.addthis.com/js/250/addthis_widget.js#pub=xa-4ada2eca664d9f9b"&gt;&lt;/SCRIPT&gt;
 &lt;!-- AddThis Button END --&gt;&lt;img src ="http://community.visual-basic.it/alessandro/aggbug/26715.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Alessandro Del Sole</dc:creator><title>Serializzazione Xaml in .NET 4.0</title><link>http://community.visual-basic.it/alessandro/archive/2009/10/11/26662.aspx</link><pubDate>Sun, 11 Oct 2009 22:12:00 GMT</pubDate><guid>http://community.visual-basic.it/alessandro/archive/2009/10/11/26662.aspx</guid><wfw:comment>http://community.visual-basic.it/alessandro/comments/26662.aspx</wfw:comment><comments>http://community.visual-basic.it/alessandro/archive/2009/10/11/26662.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://community.visual-basic.it/alessandro/comments/commentRss/26662.aspx</wfw:commentRss><trackback:ping>http://community.visual-basic.it/alessandro/services/trackbacks/26662.aspx</trackback:ping><description>&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal align=justify&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;A dire il vero la tecnica che descriver&amp;#242; in questo post non &amp;#232; una vera e propria novit&amp;#224; di &lt;FONT color=#a52a2a&gt;.NET 4.0&lt;/FONT&gt; (anche se la illustrer&amp;#242; con &lt;FONT color=#008000&gt;Visual Basic 2010&lt;/FONT&gt;), tuttavia questa nuova versione del Framework introduce comunque qualcosa di nuovo. In primo luogo, c&amp;#8217;&amp;#232; un nuovo assembly che si chiama &lt;FONT color=#000000&gt;System.Xaml.dll&lt;/FONT&gt; e che si occupa di fornire servizi per processare e per il parsing dello XAML in applicazioni WPF. Molto di ci&amp;#242; che era parte dell&amp;#8217;assembly WindowsBase.dll al riguardo di XAML, ora &amp;#232; in questa nuova libreria che espone un namespace&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;System.Xaml&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt; le cui classi verranno utilizzate in questo post.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal align=justify&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;o:p&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal align=justify&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#0000ff&gt;Ora veniamo a noi; nel corso degli anni la serializzazione nello sviluppo .NET ha subito diverse modifiche, non tanto nelle tecniche di base, quanto nelle novit&amp;#224; introdotte a supporto di tecnologie come WCF e Entity Framework. Nell&amp;#8217;ambito di queste novit&amp;#224;, ritroviamo la &lt;FONT color=#a52a2a&gt;Xaml Serialization&lt;/FONT&gt; ossia la possibilit&amp;#224; di serializzare i nostri dati sotto forma di markup XAML, tecnica che ha molteplici vantaggi: innanzitutto la possibilit&amp;#224; di serializzare, anche interi grafi di oggetti, sotto forma Xml; XAML &amp;#232; comunque Xml, quindi portabile. In secondo luogo, la possibilit&amp;#224; di serializzare con facilit&amp;#224; gli oggetti &lt;FONT color=#008000&gt;WPF&lt;/FONT&gt;; infine, la possibilit&amp;#224; di utilizzare tale tecnica nei confronti di oggetti .NET &amp;#8220;classici&amp;#8221; anche al di fuori di applicazioni WPF.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal align=justify&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;o:p&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal align=justify&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#0000ff&gt;Per la demo che segue ho utilizzato &lt;FONT color=#a52a2a&gt;Visual Studio 2010 Beta 1&lt;/FONT&gt; e avr&amp;#242; la scusa per mostrare alcune novit&amp;#224; sintattiche di VB 2010. Detto questo, creiamo un progetto per la Console e aggiungiamo un riferimento all&amp;#8217;assembly System.Xaml. &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal align=justify&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;Ora supponiamo di avere una classe &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;Customer&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt; cos&amp;#236; definita:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;Public&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt; &lt;SPAN style="COLOR: blue"&gt;Class&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;Customer&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;'Uso le auto-implemented properties :-)&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;Property&lt;/SPAN&gt; CustomerID &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;String&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;Property&lt;/SPAN&gt; CompanyName &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;String&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;Property&lt;/SPAN&gt; Orders &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;List&lt;/SPAN&gt;(&lt;SPAN style="COLOR: blue"&gt;Of&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;Order&lt;/SPAN&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt"&gt;End&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt; &lt;SPAN style="COLOR: blue"&gt;Class&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal align=justify&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;o:p&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal align=justify&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;Tale classe espone una propriet&amp;#224; &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;Orders&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt; di tipo &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;List(&lt;FONT color=#0000ff&gt;Of&lt;/FONT&gt; Order)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;. In questo modo possiamo simulare un grafo di oggetti. La classe &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;Order&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt; &amp;#232; cos&amp;#236; definita (in modo semplificato):&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;Public&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt; &lt;SPAN style="COLOR: blue"&gt;Class&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;Order&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;Property&lt;/SPAN&gt; OrderID &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;Integer&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;Property&lt;/SPAN&gt; OrderDate &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;Date&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;Property&lt;/SPAN&gt; ShipAddress &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;String&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt"&gt;End&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt; &lt;SPAN style="COLOR: blue"&gt;Class&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal align=justify&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;Ora ci servono alcune istanze di oggetti per una simulazione. In primo luogo, creiamo due istanze della classe &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;Order&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;. Notate come il codice sfrutti gli object initializer per l&amp;#8217;inizializzazione in linea:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Dim&lt;/SPAN&gt; order1 &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;New&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;Order&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;With&lt;/SPAN&gt; {.OrderDate = &lt;SPAN style="COLOR: blue"&gt;Date&lt;/SPAN&gt;.Today, .OrderID = 1, .ShipAddress = &lt;SPAN style="COLOR: #a31515"&gt;"Somewhere"&lt;/SPAN&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Dim&lt;/SPAN&gt; order2 &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;New&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;Order&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;With&lt;/SPAN&gt; {.OrderDate = &lt;SPAN style="COLOR: blue"&gt;Date&lt;/SPAN&gt;.Today, .OrderID = 2, .ShipAddress = &lt;SPAN style="COLOR: #a31515"&gt;"Somewhere else"&lt;/SPAN&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal align=justify&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;Ora creiamo un&amp;#8217;istanza della classe &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;Customer&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt; e popoliamo la sua propriet&amp;#224; &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;Orders&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt; con una collezione di &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;Order&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;. Sfruttiamo una nuova feature di VB 2010, ossia i collection initializer, per inizializzare la collezione direttamente in istanza:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Dim&lt;/SPAN&gt; cust &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;New&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;Customer&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;With&lt;/SPAN&gt; {.CustomerID = &lt;SPAN style="COLOR: #a31515"&gt;"DELSO"&lt;/SPAN&gt;, .CompanyName = &lt;SPAN style="COLOR: #a31515"&gt;"Del Sole"&lt;/SPAN&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Orders = &lt;SPAN style="COLOR: blue"&gt;New&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;List&lt;/SPAN&gt;(&lt;SPAN style="COLOR: blue"&gt;Of&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;Order&lt;/SPAN&gt;) &lt;SPAN style="COLOR: blue"&gt;From&lt;/SPAN&gt; {order1, order2}}&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;Per serializzare l&amp;#8217;oggetto &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;cust&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt; ci serve uno stream (su disco o in memoria) per poi richiamare il metodo condiviso &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;XamlServices.Save&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;, come nel codice seguente:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;'Direttive Imports System.Xaml, System.IO richieste&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;'Serialize&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Using&lt;/SPAN&gt; target &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;New&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;FileStream&lt;/SPAN&gt;(&lt;SPAN style="COLOR: #a31515"&gt;"C:\temp\CustomerData.xaml"&lt;/SPAN&gt;, &lt;SPAN style="COLOR: #2b91af"&gt;FileMode&lt;/SPAN&gt;.Create)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;XamlServices&lt;/SPAN&gt;.Save(target, cust)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;End&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;Using&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;Il metodo &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;Save&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt; richiede, come argomenti, lo stream di destinazione e l&amp;#8217;oggetto da serializzare. Se andiamo ad esaminare il contenuto del file .Xaml generato, noteremo la seguente forma:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #6464b9; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #844646; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;Customer&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt; &lt;SPAN style="COLOR: #b96464"&gt;CompanyName&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;Del Sole&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #b96464"&gt;CustomerID&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;DELSO&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #b96464"&gt;xmlns&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;clr-namespace:XamlSerialization;assembly=XamlSerialization&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #b96464"&gt;xmlns:scg&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;clr-namespace:System.Collections.Generic;assembly=mscorlib&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #b96464"&gt;xmlns:x&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;http://schemas.microsoft.com/winfx/2006/xaml&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;&amp;gt;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #555555; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #6464b9; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #844646; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;Customer.Orders&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #6464b9; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #555555; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #6464b9; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #844646; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;scg:List&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt; &lt;SPAN style="COLOR: #b96464"&gt;x:TypeArguments&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;Order&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt; &lt;SPAN style="COLOR: #b96464"&gt;Capacity&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;4&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;&amp;gt;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #555555; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #6464b9; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #844646; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;Order&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt; &lt;SPAN style="COLOR: #b96464"&gt;OrderDate&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;2009-10-11T00:00+02:00&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt; &lt;SPAN style="COLOR: #b96464"&gt;OrderID&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt; &lt;SPAN style="COLOR: #b96464"&gt;ShipAddress&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;Somewhere&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #555555; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #6464b9; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #844646; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;Order&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt; &lt;SPAN style="COLOR: #b96464"&gt;OrderDate&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;2009-10-11T00:00+02:00&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt; &lt;SPAN style="COLOR: #b96464"&gt;OrderID&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;2&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt; &lt;SPAN style="COLOR: #b96464"&gt;ShipAddress&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;Somewhere else&lt;/SPAN&gt;&lt;SPAN style="COLOR: #555555"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #6464b9"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #555555; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #6464b9; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #844646; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;scg:List&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #6464b9; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #555555; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #6464b9; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #844646; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;Customer.Orders&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #6464b9; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #6464b9; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #844646; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;Customer&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #6464b9; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal align=justify&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;Oltre al classico namespace Xml che punta allo schema per lo Xaml, notate come si faccia richiamo al namespace &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;System.Collections.Generic&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;; ci&amp;#242; &amp;#232; perch&amp;#233; noi abbiamo fatto uso dei generics. Il risultato della serializzazione &amp;#232; abbastanza semplice da capire. L&amp;#8217;oggetto &amp;#232; stato serializzato come Xaml e gli oggetti da esso referenziati sono stati rappresentati in un nodo &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;Customer.Orders&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;, completando la serializzazione del grafo. Notate come il tag &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#a52a2a&gt;scg:List&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt; indichi che il suo contenuto deve essere rappresentato, in deserializzazione, da una lista generica. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal align=justify&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;o:p&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal align=justify&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;Deserializzare lo XAML &amp;#232; altrettanto semplice. Si invoca il metodo &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;XamlServices.Load&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;, come nel codice seguente:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;'Deserialize&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Using&lt;/SPAN&gt; source &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;New&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;FileStream&lt;/SPAN&gt;(&lt;SPAN style="COLOR: #a31515"&gt;"C:\temp\CustomerData.xaml"&lt;/SPAN&gt;, &lt;SPAN style="COLOR: #2b91af"&gt;FileMode&lt;/SPAN&gt;.Open)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt"&gt;'Il metodo restituisce Object, conversione richiesta&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt; myCustomer &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;Customer&lt;/SPAN&gt; = &lt;SPAN style="COLOR: blue"&gt;CType&lt;/SPAN&gt;(&lt;SPAN style="COLOR: #2b91af"&gt;XamlServices&lt;/SPAN&gt;.Load(source), &lt;SPAN style="COLOR: #2b91af"&gt;Customer&lt;/SPAN&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;For&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;Each&lt;/SPAN&gt; ord &lt;SPAN style="COLOR: blue"&gt;In&lt;/SPAN&gt; myCustomer.Orders&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Console&lt;/SPAN&gt;.WriteLine(ord.ShipAddress)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Next&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;End&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;Using&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal align=justify&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;Il ciclo For..Each ha il solo scopo di dimostrare che la deserializzazione ha avuto successo. Ricordate che, se serializzate generics, questi devono implementare almeno &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;IList&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt; o &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#000000&gt;IDictionary&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;. Ovviamente questo &amp;#232; solo un esempio ma la tecnica pu&amp;#242; essere molto raffinata e anche complessa. Sicuramente propone uno scenario decisamente pi&amp;#249; ampio, se pensiamo al suo utilizzo anche in applicazioni WPF.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;I style="mso-bidi-font-style: normal"&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;FONT color=#008000&gt;Alessandro&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;img src ="http://community.visual-basic.it/alessandro/aggbug/26662.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Alessandro Del Sole</dc:creator><title>Aggiornato il mio client WPF per il blob storage di Windows Azure</title><link>http://community.visual-basic.it/alessandro/archive/2009/09/26/26519.aspx</link><pubDate>Sat, 26 Sep 2009 14:50:00 GMT</pubDate><guid>http://community.visual-basic.it/alessandro/archive/2009/09/26/26519.aspx</guid><wfw:comment>http://community.visual-basic.it/alessandro/comments/26519.aspx</wfw:comment><comments>http://community.visual-basic.it/alessandro/archive/2009/09/26/26519.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://community.visual-basic.it/alessandro/comments/commentRss/26519.aspx</wfw:commentRss><trackback:ping>http://community.visual-basic.it/alessandro/services/trackbacks/26519.aspx</trackback:ping><description>&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Tempo fa pubblicai su &lt;A href="http://www.codeplex.com"&gt;&lt;FONT color=#008000&gt;CodePlex&lt;/FONT&gt;&lt;/A&gt; la prima versione di un client &lt;FONT color=#000000&gt;WPF&lt;/FONT&gt; per gestire i file sul blob storage di &lt;A href="http://www.microsoft.com/azure/windowsazure.mspx"&gt;&lt;FONT color=#a52a2a&gt;Windows Azure&lt;/FONT&gt;&lt;/A&gt;. Ora ho aggiornato l'applicazione affinch&amp;#233; possa sfruttare le API della CTP di luglio 2009 di &lt;A href="http://msdn.microsoft.com/en-us/library/dd179367.aspx"&gt;&lt;FONT color=#000000&gt;Windows Azure SDK&lt;/FONT&gt;&lt;/A&gt; e ho rimosso alcuni riferimenti inutilizzati ad assembly per lo unit testing che creavano problemi nell'installazione tramite ClickOnce.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Se vi state interessando a Windows Azure e vi pu&amp;#242; servire uno strumentino semplice per poter caricare e rimuovere file sul blob storage senza perdere tempo, provate a dare un'occhiata alla &lt;A href="http://azureblobclient.codeplex.com/"&gt;&lt;FONT color=#ff0000&gt;pagina su CodePlex&lt;/FONT&gt;&lt;/A&gt; :-)&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Il codice sorgente del client &amp;#232; in Visual Basic 2008, mentre le API, facenti parte dell'SDK, sono in C#. E' disponibile anche solo un installer per ClickOnce.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;I feedback sono sempre graditi.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#008000 size=2 face=Verdana&gt;&lt;STRONG&gt;&lt;EM&gt;Alessandro&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src ="http://community.visual-basic.it/alessandro/aggbug/26519.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Alessandro Del Sole</dc:creator><title>Elencare i file di una directory con LINQ in .NET 4.0</title><link>http://community.visual-basic.it/alessandro/archive/2009/09/14/26410.aspx</link><pubDate>Mon, 14 Sep 2009 18:07:00 GMT</pubDate><guid>http://community.visual-basic.it/alessandro/archive/2009/09/14/26410.aspx</guid><wfw:comment>http://community.visual-basic.it/alessandro/comments/26410.aspx</wfw:comment><comments>http://community.visual-basic.it/alessandro/archive/2009/09/14/26410.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://community.visual-basic.it/alessandro/comments/commentRss/26410.aspx</wfw:commentRss><trackback:ping>http://community.visual-basic.it/alessandro/services/trackbacks/26410.aspx</trackback:ping><description>&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Quando esce una nuova versione di .NET Framework il pensiero va spesso, almeno nel mio caso, alle nuove mirabolanti tecnologie che questa possa offrire, ma spesso ci sfugge che ci sono piccole aggiunte anche alla libreria di classi base ereditata dal predecessore.&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Per puro caso ho scoperto oggi che la classe &lt;FONT color=#000000 face="Courier New"&gt;System.IO.Directory&lt;/FONT&gt; di &lt;FONT color=#008000&gt;.NET Framework 4.0 Beta 1&lt;/FONT&gt; offre ora un metodo chiamato &lt;FONT color=#000000 face="Courier New"&gt;EnumerateFiles&lt;/FONT&gt;, che fa lo stesso di quanto gi&amp;#224; facesse &lt;FONT color=#000000 face="Courier New"&gt;GetFiles&lt;/FONT&gt;, solo che restituisce una &lt;FONT color=#000000 face="Courier New"&gt;IEnumerable(&lt;FONT color=#0000ff&gt;Of&lt;/FONT&gt; String)&lt;/FONT&gt; rendendo il risultato, di fatto, interrogabile con LINQ in modo diretto. &lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;Un esempio:&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9.5pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Dim&lt;/SPAN&gt; filesEnumerable &lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;IEnumerable&lt;/SPAN&gt;(&lt;SPAN style="COLOR: blue"&gt;Of&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;String&lt;/SPAN&gt;) = &lt;SPAN style="COLOR: #2b91af"&gt;Directory&lt;/SPAN&gt;.EnumerateFiles(&lt;SPAN style="COLOR: #a31515"&gt;"C:\"&lt;/SPAN&gt;, &lt;SPAN style="COLOR: #a31515"&gt;"*.exe"&lt;/SPAN&gt;)&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff size=2 face=Verdana&gt;In sostanza si usa esattamente come &lt;FONT color=#000000 face="Courier New"&gt;GetFiles&lt;/FONT&gt;, ma il tipo restituito &amp;#232; diverso. La vera finezza sta nel poterci scrivere su una query &lt;FONT color=#a52a2a&gt;LINQ&lt;/FONT&gt;, come nel seguente esempio che estrae i nomi dei file nella directory specificata, contenenti la parola "document":&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2 face=Verdana&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9.5pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Dim&lt;/SPAN&gt; fileList = &lt;SPAN style="COLOR: blue"&gt;From&lt;/SPAN&gt; everyFile &lt;SPAN style="COLOR: blue"&gt;In&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;Directory&lt;/SPAN&gt;.EnumerateFiles(&lt;SPAN style="COLOR: #a31515"&gt;"C:\"&lt;/SPAN&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9.5pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Where&lt;/SPAN&gt; everyFile.ToLowerInvariant.Contains(&lt;SPAN style="COLOR: #a31515"&gt;"document"&lt;/SPAN&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9.5pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Select&lt;/SPAN&gt; everyFile&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9.5pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9.5pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;For&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;Each&lt;/SPAN&gt; item &lt;SPAN style="COLOR: blue"&gt;In&lt;/SPAN&gt; fileList&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9.5pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #2b91af"&gt;Console&lt;/SPAN&gt;.WriteLine(&lt;SPAN style="COLOR: #a31515"&gt;"File name: {0}"&lt;/SPAN&gt;, item)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; FONT-SIZE: 9.5pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 9.5pt"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#0000ff&gt;Vale sempre il discorso che la query viene eseguita quando il suo risultato &amp;#232; effettivamente utilizzato, come sempre in LINQ. Cos&amp;#236; come valgono tutti i concetti generali di &lt;FONT color=#000000&gt;LINQ to Objects&lt;/FONT&gt; anche in questo caso. Probabilmente &amp;#232; una scoperta banale, ma comunque esiste :-)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT color=#008000 size=2 face=Verdana&gt;&lt;EM&gt;&lt;STRONG&gt;Alessandro&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src ="http://community.visual-basic.it/alessandro/aggbug/26410.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>