Blog de Francisco Velázquez

otro blog personal

Archive for September 2006

Serialize/Deserialize

leave a comment »

using System.IO;
 using System.Xml;
 using System.Xml.Serialization;

private string serialize(System.Type type, Object data)
 {
 XmlSerializer xmlSerializer = new XmlSerializer(type);
 System.IO.TextWriter writer = new System.IO.StringWriter();
 xmlSerializer.Serialize(writer, data);
 writer.Close();
 return writer.ToString();
 }

private object deserialize(System.Type type, string data)
 {
 XmlSerializer xmlSerializer = new XmlSerializer(type);
 TextReader textReader = new StringReader(data);
 XmlReader xmlReader = new XmlTextReader(textReader);
 return xmlSerializer.Deserialize(xmlReader);
 }

Written by fravelgue

September 19, 2006 at 9:52 am

Posted in development

Tagged with , , , ,

Using TODO, HACK, and UNDONE Comments

leave a comment »

This tip comes in from Stephen Vakil:

I have another tip for VS. Not many people I’ve met know about TODO comments. When you begin a comment with ToDo or TODO or however you want to capitalize it, you can then see this comment in your task list by changing the task list options. This is very useful for marking parts of your code that you later need to work on.By default, there is also a HACK and UNDONE comment that I use from time to time. You can add comments that can be seen on the task list by going to Tools->Options, then under the environment folder select Task List.

via: http://aspnet.4guysfromrolla.com/articles/032704-1.aspx

Written by fravelgue

September 19, 2006 at 9:42 am

Posted in development

Tagged with , ,

Hello world!

leave a comment »

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

Written by fravelgue

September 19, 2006 at 9:31 am

Posted in Uncategorized