當前位置: 首頁>>代碼示例>>VB.NET>>正文


VB.NET DesignerSerializationManager類代碼示例

本文整理匯總了VB.NET中System.ComponentModel.Design.Serialization.DesignerSerializationManager的典型用法代碼示例。如果您正苦於以下問題:VB.NET DesignerSerializationManager類的具體用法?VB.NET DesignerSerializationManager怎麽用?VB.NET DesignerSerializationManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了DesignerSerializationManager類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。

示例1: StringProperty

Public Class SampleObject
   Private stringValue As String = Nothing
   Private intValue As Integer = Integer.MinValue
   
   
   Public Property StringProperty() As String
      Get
         Return Me.stringValue
      End Get 
      Set
         Me.stringValue = value
      End Set
   End Property 
   
   Public Property IntProperty() As Integer
      Get
         Return Me.intValue
      End Get 
      Set
         Me.intValue = value
      End Set
   End Property
End Class
開發者ID:VB.NET開發者,項目名稱:System.ComponentModel.Design.Serialization,代碼行數:23,代碼來源:DesignerSerializationManager

示例2: StringProperty

Public Class SampleObject
   Private stringValue As String = Nothing
   Private intValue As Integer = Integer.MinValue
   Private childValue As SampleObject = Nothing
   
   
   Public Property StringProperty() As String
      Get
         Return Me.stringValue
      End Get 
      Set
         Me.stringValue = value
      End Set
   End Property 
   
   Public Property IntProperty() As Integer
      Get
         Return Me.intValue
      End Get 
      Set
         Me.intValue = value
      End Set
   End Property 
   
   Public Property Child() As SampleObject
      Get
         Return Me.childValue
      End Get 
      Set
         Me.childValue = value
      End Set
   End Property
End Class
開發者ID:VB.NET開發者,項目名稱:System.ComponentModel.Design.Serialization,代碼行數:33,代碼來源:DesignerSerializationManager

示例3: Main

Class Program
   
   Public Overloads Shared Sub Main()
      Main(System.Environment.GetCommandLineArgs())
   End Sub
   
   Overloads Shared Sub Main(args() As String)
      Dim root As New SampleObject()
      
      Dim currentObject As SampleObject = root
      
      Dim i As Integer
      For i = 0 To 9
         Dim o As New SampleObject()
         
         currentObject.Child = o
         
         currentObject = o
      Next i
   End Sub 
End Class
開發者ID:VB.NET開發者,項目名稱:System.ComponentModel.Design.Serialization,代碼行數:21,代碼來源:DesignerSerializationManager


注:本文中的System.ComponentModel.Design.Serialization.DesignerSerializationManager類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。