By uskatpayday loans

Algunos links

Viernes, abril 18th, 2008 Posted in links | 1 Comment »

12 señales de que eres un mal programador A mi no me convence mucho este patrón, pero para gustos colores. Liberado Resource Manager Application Block Inside c# (redondeo al "par más próximo") Deshabilitar el chequeo de compatibilidad de extensiones en las betas de ...

Obtener ip

Martes, marzo 25th, 2008 Posted in snippets | No Comments »

[csharp] namespace NKUtilities { using System; using System.Net; public class DNSUtility { public static int Main(string[] args) ...

Comprobar conexión sitio web

Lunes, marzo 24th, 2008 Posted in snippets | No Comments »

[csharp] try { HttpWebRequest reqFP = (HttpWebRequest)HttpWebRequest.Create(this.Url); HttpWebResponse rspFP = (HttpWebResponse)reqFP.GetResponse(); if (HttpStatusCode.OK == rspFP.StatusCode) { // HTTP = 200 - Internet connection available, server online rspFP.Close(); return true; } else { // Other status - Server or connection not available rspFP.Close(); return false; } } catch (WebException) { // Exception - connection not available return false; } [/csharp]

Algunos links

Viernes, marzo 14th, 2008 Posted in links | No Comments »

Si quieres entender de que va eso de silverlight: Desensamblando un proyecto Silverlight 2.0 Beta 1 Esas herramientas perdidas: The Command Window Windows también tiene shell: The Windows Command Line, Batch Files, and Scripting Por todos los bits de C#: Enumeraciones de ...

String tips&tricks

Martes, marzo 4th, 2008 Posted in tips&tricks | No Comments »

StringCollection to Array StringCollection.CopyTo Separate a string into char array String.ToCharArray String to byte array Encoding.ASCII.GetBytes(string) Byte array to string Encoding.ASCII.GetString(byteArray, 0, byteArray.Length)