请指导我如何从泛型类型参数中获取类型,在以下情况下:
Public Function DerializeFromFile(Of T)(ByVal fileName As String) As T
Dim serializer As New XmlSerializer(T.GetType()) '--------------- HELP !!!???
Dim fileStream = New FileStream(fileName,
FileMode.Open, FileAccess.Read, FileShare.Read)
Dim loadedObject As T = DirectCast(serializer.Deserialize(fileStream), T)
Return loadedObject
End Function