<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type='text/xsl' href='http://moacircasemiro.spaces.live.com/mmm2008-05-17_13.22/rsspretty.aspx?rssquery=en-US;http%3a%2f%2fmoacircasemiro.spaces.live.com%2fcategory%2fC%c3%b3digos__xa5Exemplos%2ffeed.rss' version='1.0'?><rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:msn="http://schemas.microsoft.com/msn/spaces/2005/rss" xmlns:live="http://schemas.microsoft.com/live/spaces/2006/rss" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Moacir Casemiro PontoCom !! : Códigos/Exemplos</title><description /><link>http://moacircasemiro.spaces.live.com/?_c11_BlogPart_BlogPart=blogview&amp;_c=BlogPart&amp;partqs=catC%25C3%25B3digos__xa5Exemplos</link><language>en-US</language><pubDate>Mon, 07 Jul 2008 16:16:44 GMT</pubDate><lastBuildDate>Mon, 07 Jul 2008 16:16:44 GMT</lastBuildDate><generator>Microsoft Spaces v1.1</generator><docs>http://www.rssboard.org/rss-specification</docs><ttl>60</ttl><cf:parentRSS>http://moacircasemiro.spaces.live.com/blog/feed.rss</cf:parentRSS><live:type>blogcategory</live:type><live:identity><live:id>2850367476420337210</live:id><live:alias>moacircasemiro</live:alias></live:identity><cf:listinfo><cf:group ns="http://schemas.microsoft.com/live/spaces/2006/rss" element="typelabel" label="Type" /><cf:group ns="http://schemas.microsoft.com/live/spaces/2006/rss" element="tag" label="Tag" /><cf:group element="category" label="Category" /><cf:sort element="pubDate" label="Date" data-type="date" default="true" /><cf:sort element="title" label="Title" data-type="string" /><cf:sort ns="http://purl.org/rss/1.0/modules/slash/" element="comments" label="Comments" data-type="number" /></cf:listinfo><item><title>O que significa Nullable ?</title><link>http://moacircasemiro.spaces.live.com/Blog/cns!278E8A1E2F5C5E3A!484.entry</link><description>&lt;div&gt;
&lt;p style="margin:0cm 0cm 0pt 106.2pt;text-indent:35.4pt" align=left&gt;&lt;span style="font-size:14pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;font color="#4f81bd"&gt;O que significa Nullable ?&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;Você já ouviu falar de Nullable ?&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;Na verdade é um nome um pouco estranho , mais se você já teve a necessidade de atribuir valores null para variáveis (int , double , bool , char , int[] ), então significa que a classe Nullable poderá te ajudar bastante para resolver essas situações.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;De uma forma bem simples , uma Nullable tem como objetivo permitir atribuir valores null a variáveis.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;Entendendo um pouco mais do lado teórico podemos exemplificar da seguinte forma , uma Nullable&amp;lt;Int32&amp;gt; pronunciamos “Nullable de Int32” pode ser utilizada com valores através do arranjo -2147483648 to 2147483647 ou através do valor null. A Nullable&amp;lt;bool&amp;gt; pode ser utilizado os valores true ou false , ou null. &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;Do lado prático se tentarmos&lt;span&gt;  &lt;/span&gt;escrever o seguinte código . O que acontece ?&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;Int&lt;/span&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:#999999"&gt;i = null ;&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:green"&gt;// erro&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;Se tentando executar esse código com certeza irá te retornar o seguinte erro : &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;Cannot convert &lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;null&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; to &lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:maroon;font-family:'Verdana','sans-serif'"&gt;'int'&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; because it &lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;is&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; a value type&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;Motivo do erro : Não é possível converter null para Int.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;A Classe Nullable te dará todo suporte para lhe ajudar a resolver esses problemas. Para que possamos colocar em prática é necessário entender como podemos utilizá-la.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;A Nullable pode ser utilizada de duas formas :&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin-left:36pt;text-indent:-18pt;tab-stops:list 36.0pt"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;font-family:Symbol"&gt;&lt;span&gt;·&lt;span style="font:7pt 'Times New Roman'"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;System.Nullable&amp;lt;T&amp;gt; &lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;nomedavariavel&lt;/span&gt;&lt;/code&gt;&lt;span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="text-indent:18pt"&gt;&lt;span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;Ou &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin-left:36pt;text-indent:-18pt;tab-stops:list 36.0pt"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;code&gt;&lt;span style="font-size:10pt;font-family:Symbol"&gt;&lt;span&gt;·&lt;span style="font:7pt 'Times New Roman'"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;T? nomedavariavel&lt;/span&gt;&lt;/code&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&lt;code&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt;&lt;/code&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;code&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span&gt;      &lt;/span&gt;A duas formas são bem simples de se aplicar, mais temos o segundo modelo como mais prático (T?). Abaixo estou listando alguns exemplos de como poderíamos colocar na prática.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/code&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;code&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt;&lt;/code&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;int&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;? i = 10;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;double&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;? d1 = 3.14;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;bool&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;? flag = &lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;null&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;char&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;? letter = &lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:maroon;font-family:'Verdana','sans-serif'"&gt;'a'&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;int&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;?[] arr = &lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;new&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;int&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;?[10];&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;Propriedades &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;As Nullables possuem duas propriedades ready-only . São elas :&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000" size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin-left:36pt;text-indent:-18pt;tab-stops:list 36.0pt"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span&gt;&lt;span&gt;·&lt;span style="font:7pt 'Times New Roman'"&gt;         &lt;/span&gt;&lt;/span&gt;HasValue&lt;/span&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin-left:36pt"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;code&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;HasValue&lt;/span&gt;&lt;/code&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt; é do tipo booleano.&lt;span&gt;  &lt;/span&gt;Se a variável que estiver utilizando for null o valor desse propriedade será false senão ela será true.&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;ul style="margin-top:0cm"&gt;
&lt;li style="margin:0cm 0cm 0pt;color:gray;tab-stops:list 36.0pt"&gt;&lt;span&gt;&lt;font face=Arial color="#000000" size=3&gt;Value&lt;br&gt;&lt;br&gt;&lt;/font&gt;&lt;font color="#000000"&gt;&lt;font face=Arial size=3&gt;Retorna o valor da variável . &lt;br&gt;&lt;br&gt;Devemos ter somente um cuidado, se a propriedade Value for igual a null será gerado uma exceção. Para resolver é necessário fazer uma validação de acordo com o código abaixo :&lt;/font&gt;&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;span&gt;&lt;font face=Arial size=3&gt;   &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;int&lt;/span&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;? num = &lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;null&lt;/span&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/ul&gt;
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;decimal&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; ? Valor = &lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;null&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;br&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span&gt;         &lt;/span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:green;font-family:'Verdana','sans-serif'"&gt;// Verfica se está retornando null&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;if&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; (num.HasValue == &lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;true&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;)&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;            &lt;/span&gt;{&lt;br&gt;&lt;span&gt;         &lt;/span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:green;font-family:'Verdana','sans-serif'"&gt;// Retorna o valor da variavel num&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;System.&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:teal;font-family:'Verdana','sans-serif'"&gt;Console&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;.WriteLine(&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:maroon;font-family:'Verdana','sans-serif'"&gt;&amp;quot;num = &amp;quot;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; + num.Value);&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span&gt;            &lt;/span&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;else&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span&gt;            &lt;/span&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;                &lt;/span&gt;System.&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:teal;font-family:'Verdana','sans-serif'"&gt;Console&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;.WriteLine(&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:maroon;font-family:'Verdana','sans-serif'"&gt;&amp;quot;num = Null&amp;quot;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;);&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;}&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;Uma das necessidades de estarmos utilizando valores null muita das vezes são devido uma base de dados ou um tipo de dados que contém elementos que não podem ser inicializados sem ser atribuído algum valor.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p&gt;&lt;span style="font-size:10pt;font-family:'Verdana','sans-serif'"&gt;&lt;font color="#000000"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;Para concluirmos o nosso estudo , estou passando um código completo da utilização da Nullables e principalmente para que se torne referência para que possa utilizar nas suas aplicações.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;class&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:teal;font-family:'Verdana','sans-serif'"&gt;NullableExample&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;static&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;void&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; Main()&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span&gt;    &lt;/span&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:green;font-family:'Verdana','sans-serif'"&gt;// Inicializando variavel do tipo inteira com null.&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;br&gt;&lt;span&gt;&lt;font face=Arial size=3&gt;        &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;int&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;? num = &lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;null&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;        &lt;/span&gt;&lt;br&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:green;font-family:'Verdana','sans-serif'"&gt;// A váriavel num é null ?&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;        &lt;/span&gt;if&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; (num.HasValue == &lt;/span&gt;&lt;span style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;true&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;)&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;        &lt;/span&gt;{&lt;br&gt;&lt;span&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:green;font-family:'Verdana','sans-serif'"&gt;// Retorna o valor da variavel num.&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;System.&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:teal;font-family:'Verdana','sans-serif'"&gt;Console&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;.WriteLine(&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:maroon;font-family:'Verdana','sans-serif'"&gt;&amp;quot;num = &amp;quot;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; + num.Value);&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span&gt;        &lt;/span&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;else&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span&gt;        &lt;/span&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;            &lt;/span&gt;System.&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:teal;font-family:'Verdana','sans-serif'"&gt;Console&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;.WriteLine(&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:maroon;font-family:'Verdana','sans-serif'"&gt;&amp;quot;num = Null&amp;quot;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;);&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span&gt;        &lt;/span&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:green;font-family:'Verdana','sans-serif'"&gt;//Recupera o valor default da variavel num que será null.&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;int&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; y = num.GetValueOrDefault();&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial size=3&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:green;font-family:'Verdana','sans-serif'"&gt;// Se num.Value for igual a null então será retornado uma exceção do tipo&lt;span&gt;  &lt;/span&gt;throws an InvalidOperationException if num.HasValue is false&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;try&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span&gt;        &lt;/span&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span&gt;            &lt;/span&gt;y = num.Value;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span&gt;        &lt;/span&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:blue;font-family:'Verdana','sans-serif'"&gt;catch&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; (System.&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:teal;font-family:'Verdana','sans-serif'"&gt;InvalidOperationException&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt; e)&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span&gt;        &lt;/span&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;            &lt;/span&gt;System.&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:teal;font-family:'Verdana','sans-serif'"&gt;Console&lt;/span&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;.WriteLine(e.Message);&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span lang=EN-US style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;}&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial&gt;&lt;font size=3&gt;&lt;span&gt;    &lt;/span&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial size=3&gt;}&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial size=3&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial color="#000000"&gt;Moacir Casemiro&lt;br&gt;MCP , MCAD , MCTS&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial size=3&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0cm 0cm 0pt"&gt;&lt;span style="font-size:10pt;color:gray;font-family:'Verdana','sans-serif'"&gt;&lt;font face=Arial size=3&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2850367476420337210&amp;page=RSS%3a+O+que+significa+Nullable+%3f&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=moacircasemiro.spaces.live.com&amp;amp;GT1=moacircasemiro"&gt;</description><comments>http://moacircasemiro.spaces.live.com/Blog/cns!278E8A1E2F5C5E3A!484.entry#comment</comments><guid isPermaLink="true">http://moacircasemiro.spaces.live.com/Blog/cns!278E8A1E2F5C5E3A!484.entry</guid><pubDate>Sun, 08 Jun 2008 14:03:02 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://moacircasemiro.spaces.live.com/blog/cns!278E8A1E2F5C5E3A!484/comments/feed.rss</wfw:commentRss><wfw:comment>http://moacircasemiro.spaces.live.com/Blog/cns!278E8A1E2F5C5E3A!484.entry#comment</wfw:comment><dcterms:modified>2008-06-08T14:14:12Z</dcterms:modified></item><item><title>Como alterar o Body dinamicamente</title><link>http://moacircasemiro.spaces.live.com/Blog/cns!278E8A1E2F5C5E3A!164.entry</link><description>&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;Bem Simples né !!&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;oBory.Attributes[&amp;quot;BgColor&amp;quot;] = theBackgroundColor;&lt;br&gt;&amp;lt;body id=&amp;quot;oBory&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;Moacir Casemiro&lt;/font&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2850367476420337210&amp;page=RSS%3a+Como+alterar+o+Body+dinamicamente&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=moacircasemiro.spaces.live.com&amp;amp;GT1=moacircasemiro"&gt;</description><comments>http://moacircasemiro.spaces.live.com/Blog/cns!278E8A1E2F5C5E3A!164.entry#comment</comments><guid isPermaLink="true">http://moacircasemiro.spaces.live.com/Blog/cns!278E8A1E2F5C5E3A!164.entry</guid><pubDate>Tue, 02 Jan 2007 12:44:11 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://moacircasemiro.spaces.live.com/blog/cns!278E8A1E2F5C5E3A!164/comments/feed.rss</wfw:commentRss><wfw:comment>http://moacircasemiro.spaces.live.com/Blog/cns!278E8A1E2F5C5E3A!164.entry#comment</wfw:comment><dcterms:modified>2007-01-07T22:52:59Z</dcterms:modified></item><item><title>Código simples de como converter um DataSet num XMl em um XSL</title><link>http://moacircasemiro.spaces.live.com/Blog/cns!278E8A1E2F5C5E3A!163.entry</link><description>&lt;div&gt;&lt;font color="#ffffff"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;font color="#000000"&gt;Código simples de como converter um DataSet num XMl em um XSL&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt;Dim strConnect As String&lt;br&gt;strConnect = &amp;quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\edward\books2.mdb&amp;quot;&lt;br&gt;Dim strSelect As String&lt;br&gt;strSelect = &amp;quot;SELECT TOP 5 * FROM BookList&amp;quot;&lt;br&gt;Dim objDataSet As New DataSet()&lt;br&gt;Dim objConnect As New OleDbConnection(strConnect)&lt;br&gt;Dim objDataAdapter As New OleDbDataAdapter(strSelect, objConnect)&lt;br&gt;objDataAdapter.Fill(objDataSet, &amp;quot;book&amp;quot;)&lt;br&gt;Dim objDataView As New DataView(objDataSet.Tables(&amp;quot;book&amp;quot;))&lt;br&gt;   objDataSet.DataSetName = &amp;quot;books&amp;quot;&lt;br&gt;   objDataSet.WriteXml(Server.MapPath(&amp;quot;newfile.xml&amp;quot;),XmlWriteMode.IgnoreSchema)&lt;br&gt;   objDataSet.WriteXmlSchema(Server.MapPath(&amp;quot;newfile.xsl&amp;quot;))&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#ffffff"&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt;&lt;font color="#ffffff"&gt;Moacir Casemiro&lt;/font&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2850367476420337210&amp;page=RSS%3a+C%c3%b3digo+simples+de+como+converter+um+DataSet+num+XMl+em+um+XSL&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=moacircasemiro.spaces.live.com&amp;amp;GT1=moacircasemiro"&gt;</description><comments>http://moacircasemiro.spaces.live.com/Blog/cns!278E8A1E2F5C5E3A!163.entry#comment</comments><guid isPermaLink="true">http://moacircasemiro.spaces.live.com/Blog/cns!278E8A1E2F5C5E3A!163.entry</guid><pubDate>Tue, 02 Jan 2007 12:38:34 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://moacircasemiro.spaces.live.com/blog/cns!278E8A1E2F5C5E3A!163/comments/feed.rss</wfw:commentRss><wfw:comment>http://moacircasemiro.spaces.live.com/Blog/cns!278E8A1E2F5C5E3A!163.entry#comment</wfw:comment><dcterms:modified>2007-01-07T22:53:22Z</dcterms:modified></item></channel></rss>