对象无法序列化
Public Class TTPublic Property P1 As String = "P1"
Public Property P2 As String = "P2"
End Class
<Autodesk.AutoCAD.Runtime.CommandMethod("WriteXML")> _
Sub WriteXML()
Dim fs As New IO.StreamWriter("c:\T.xml", False)
Dim xs As New XmlSerializer(GetType(TT))
xs.Serialize(fs, New TT)
fs.Close()
End Sub
这段代码如果在CAD里运行,总是会提示“找不到配置文件”,运行会出错。
如果在windows Form里运行,肯定没有问题。求解决!!
你需要把当前程序集用上 没理解,请详述
页:
[1]