I\'m parsing an XML file with the XmlReader class in .NET and I thought it would be smart to write a generic parse function to read different attributes generic
XmlReader
try
if (readData is T) return (T)(object)readData;