在
在VB
Dim objA As New CResume
然後進行初始化
objA
objA
……
Dim objB As New CResume
objB=objA
這樣的話
objB
而實際上
下面我們重點討論對象的Clone問題
MemoryStream
BinFormatter
主要思路
先用BinFormatter的Serialize方法
CResume類的代碼
Imports System
Imports System
<Serializable()> Public Class CResume
Dim m_Name As String
Dim m_Address As String
Public Property Address() As String
Get
Return m_Address
End Get
Set(ByVal NewAddress As String)
m_Address = NewAddress
End Set
End Property
[
From:http://tw.wingwit.com/Article/program/net/201311/15510.html