Archive for September 2006
Serialize/Deserialize
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);
}
Using TODO, HACK, and UNDONE Comments
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
Hello world!
Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

