<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-22529781.post6576150636372793595..comments</id><updated>2009-06-26T15:18:23.734-06:00</updated><category term='el mundo es plano'/><category term='wiki'/><category term='cotorreo'/><category term='javascript'/><category term='workflow'/><category term='seguridad'/><category term='orientación a servicios'/><category term='bloguear'/><category term='preguntas y respuestas'/><category term='wf'/><category term='.net framework 3.5'/><category term='arquitectura'/><category term='delphi'/><category term='c#'/><category term='csla'/><category term='libros'/><category term='enlaces chidos'/><category term='tips'/><category term='aventuras en betalandia'/><category term='video'/><category term='uml'/><category term='tdd'/><category term='.net'/><category term='epifanía'/><category term='atlas'/><category term='vb.net'/><category term='wcf'/><category term='xml'/><category term='community server'/><category term='linq'/><category term='iis'/><category term='office'/><category term='wetpaint'/><category term='silverlight'/><category term='desarrollo web'/><category term='php'/><category term='ajax'/><category term='desarrollo de software'/><category term='cardspace'/><category term='web services'/><category term='herramientas'/><category term='sql server'/><category term='referencia rápida'/><category term='visual studio'/><category term='diseño web'/><category term='vb6'/><category term='ruby on rails'/><category term='ado.net'/><category term='comunidad'/><category term='wpf'/><category term='certificación'/><category term='.net framework 3.0'/><category term='orm'/><category term='los mejorcitos'/><category term='asp.net'/><category term='project management'/><category term='anuncios'/><category term='windows vista'/><title type='text'>Comments on Diario de un Dotnetero: Usando using</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.dotnetero.com/feeds/6576150636372793595/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/22529781/6576150636372793595/comments/default'/><link rel='alternate' type='text/html' href='http://www.dotnetero.com/2006/08/usando-using.html'/><author><name>Carlos Rubalcava</name><uri>http://www.blogger.com/profile/10848793413989996197</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://i110.photobucket.com/albums/n109/carlosrubalcava/avatars/blogger_profile_pic.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-22529781.post-3534807628644161535</id><published>2009-06-26T15:18:23.734-06:00</published><updated>2009-06-26T15:18:23.734-06:00</updated><title type='text'>En estos ejemplos estas usando el using como en lo...</title><content type='html'>En estos ejemplos estas usando el using como en los casos de los if cuando solo tienen una instruccion, entonces no es necesario poner las eiquetas de abrir y cerrar; Es correcto? asi funciona?&lt;br /&gt;&lt;br /&gt;Y tienes algun articulo sobre lo que comentabas de manejador de errores global y el stack trace ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/22529781/6576150636372793595/comments/default/3534807628644161535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/22529781/6576150636372793595/comments/default/3534807628644161535'/><link rel='alternate' type='text/html' href='http://www.dotnetero.com/2006/08/usando-using.html?showComment=1246051103734#c3534807628644161535' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dotnetero.com/2006/08/usando-using.html' ref='tag:blogger.com,1999:blog-22529781.post-6576150636372793595' source='http://www.blogger.com/feeds/22529781/posts/default/6576150636372793595' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1463127349'/></entry><entry><id>tag:blogger.com,1999:blog-22529781.post-7297397981608092883</id><published>2007-07-29T13:55:00.000-06:00</published><updated>2007-07-29T13:55:00.000-06:00</updated><title type='text'>En realidad no puedes manejar las excepciones dent...</title><content type='html'>En realidad no puedes manejar las excepciones dentro del bloque local de código con Using, tendrías que manejarlo en el código que manda llamar tu bloque.  &lt;BR/&gt;&lt;BR/&gt;Es como si fuera un try/finally (sin catch), excepto que te ahorras la talacha de terner que hacer dispose o close de los objetos. Using no se "traga" las excepciones (osea las excepciones aún son "burbujeadas" hacia arriba).&lt;BR/&gt;&lt;BR/&gt;Esto puede o no ser lo que quieras, según el tipo de aplicación que manejes.  Yo por ejemplo desarrollo principalmente aplicaciones Web, y ahí normalmente tengo un manejador de errores global para mi aplicación que puede enviarme una notificación o registrar el error en un log o base de datos para poder obtener métricos de los errores más frecuentes, etc.  Como ese componente es global a mi aplicación, yo no quiero que mis bloques locales atrapen las excepciones, yo quiero que se vayan hasta que lo atrape mi manejador y me provea el stack trace completito.  &lt;BR/&gt;&lt;BR/&gt;Pero en fin, esto ya más bien es una pregunta para una discusión sobre exception-handling... creo que me acabas de dar una idea para mi próximo artículo :o)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/22529781/6576150636372793595/comments/default/7297397981608092883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/22529781/6576150636372793595/comments/default/7297397981608092883'/><link rel='alternate' type='text/html' href='http://www.dotnetero.com/2006/08/usando-using.html?showComment=1185738900000#c7297397981608092883' title=''/><author><name>KaMiKaZe aka Carlos</name><uri>http://www.blogger.com/profile/10848793413989996197</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://i110.photobucket.com/albums/n109/carlosrubalcava/avatars/simpsons-red-hair_small.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dotnetero.com/2006/08/usando-using.html' ref='tag:blogger.com,1999:blog-22529781.post-6576150636372793595' source='http://www.blogger.com/feeds/22529781/posts/default/6576150636372793595' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1075712160'/></entry><entry><id>tag:blogger.com,1999:blog-22529781.post-8698788573988622867</id><published>2007-07-28T19:13:00.000-06:00</published><updated>2007-07-28T19:13:00.000-06:00</updated><title type='text'>usin solo te asegura de hacer dispose a tus objeto...</title><content type='html'>usin solo te asegura de hacer dispose a tus objetos. &lt;BR/&gt;pero como manejas las excepciones ¿? o como envías mensajes de error, o comunicas al user que ocurrió un error combinado las dos. La sol podría estar en la siguiente dir ... &lt;BR/&gt;http://www.thescripts.com/forum/thread669411.html</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/22529781/6576150636372793595/comments/default/8698788573988622867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/22529781/6576150636372793595/comments/default/8698788573988622867'/><link rel='alternate' type='text/html' href='http://www.dotnetero.com/2006/08/usando-using.html?showComment=1185671580000#c8698788573988622867' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dotnetero.com/2006/08/usando-using.html' ref='tag:blogger.com,1999:blog-22529781.post-6576150636372793595' source='http://www.blogger.com/feeds/22529781/posts/default/6576150636372793595' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-997104780'/></entry><entry><id>tag:blogger.com,1999:blog-22529781.post-2180602413860492499</id><published>2007-07-25T11:45:00.000-06:00</published><updated>2007-07-25T11:45:00.000-06:00</updated><title type='text'>Hasta donde sé, no hay diferencia, en términos prá...</title><content type='html'>Hasta donde sé, no hay diferencia, en términos prácticos, entre Close() y Dispose().  No sé si Close simplemente es un alias para Dispose en algunos objetos (como que se oye más natural decir "cerrar" conexión" en lugar de "disponer conexión") o si simplemente lo manda llamar.  En realidad no importa.  Using de todas maneras les da killer :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/22529781/6576150636372793595/comments/default/2180602413860492499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/22529781/6576150636372793595/comments/default/2180602413860492499'/><link rel='alternate' type='text/html' href='http://www.dotnetero.com/2006/08/usando-using.html?showComment=1185385500000#c2180602413860492499' title=''/><author><name>KaMiKaZe aka Carlos</name><uri>http://www.blogger.com/profile/10848793413989996197</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://i110.photobucket.com/albums/n109/carlosrubalcava/avatars/simpsons-red-hair_small.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dotnetero.com/2006/08/usando-using.html' ref='tag:blogger.com,1999:blog-22529781.post-6576150636372793595' source='http://www.blogger.com/feeds/22529781/posts/default/6576150636372793595' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1075712160'/></entry><entry><id>tag:blogger.com,1999:blog-22529781.post-8613004705161253702</id><published>2007-07-25T09:36:00.000-06:00</published><updated>2007-07-25T09:36:00.000-06:00</updated><title type='text'>perfecto... lo que estaba buscando... por que la i...</title><content type='html'>perfecto... lo que estaba buscando... por que la idea de anidar los using no me gustaba nada... bueno...&lt;BR/&gt;Pero una pregunta, al salir de bloque encerrado por el using, por ejemplo para un objeto de tipo sqlconnection, se hace un .close() , un .dispose() o ambos... ahora que diferencia hay entre hacer uno o el otro, basta con solo hacerle un .dispose()...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/22529781/6576150636372793595/comments/default/8613004705161253702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/22529781/6576150636372793595/comments/default/8613004705161253702'/><link rel='alternate' type='text/html' href='http://www.dotnetero.com/2006/08/usando-using.html?showComment=1185377760000#c8613004705161253702' title=''/><author><name>sigfrido2006@hotmail.com</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dotnetero.com/2006/08/usando-using.html' ref='tag:blogger.com,1999:blog-22529781.post-6576150636372793595' source='http://www.blogger.com/feeds/22529781/posts/default/6576150636372793595' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1984917641'/></entry></feed>
