'' ------------------------------------------------------------------------------
''  <auto-generated>
''    Generated by Xsd2Code++. Version 4.4.0.7
''    <NameSpace>VERAG_KundenStamm_Export</NameSpace><Collection>List</Collection><codeType>VisualBasic</codeType><EnableDataBinding>False</EnableDataBinding><GenerateCloneMethod>False</GenerateCloneMethod><GenerateDataContracts>False</GenerateDataContracts><DataMemberNameArg>OnlyIfDifferent</DataMemberNameArg><DataMemberOnXmlIgnore>False</DataMemberOnXmlIgnore><CodeBaseTag>Net45</CodeBaseTag><InitializeFields>All</InitializeFields><GenerateUnusedComplexTypes>True</GenerateUnusedComplexTypes><GenerateUnusedSimpleTypes>True</GenerateUnusedSimpleTypes><GenerateXMLAttributes>True</GenerateXMLAttributes><OrderXMLAttrib>False</OrderXMLAttrib><EnableLazyLoading>False</EnableLazyLoading><VirtualProp>False</VirtualProp><PascalCase>False</PascalCase><AutomaticProperties>False</AutomaticProperties><PropNameSpecified>None</PropNameSpecified><PrivateFieldName>StartWithUnderscore</PrivateFieldName><PrivateFieldNamePrefix></PrivateFieldNamePrefix><EnableRestriction>False</EnableRestriction><RestrictionMaxLenght>False</RestrictionMaxLenght><RestrictionRegEx>False</RestrictionRegEx><RestrictionRange>False</RestrictionRange><ValidateProperty>False</ValidateProperty><ClassNamePrefix></ClassNamePrefix><ClassLevel>Public</ClassLevel><PartialClass>True</PartialClass><ClassesInSeparateFiles>False</ClassesInSeparateFiles><ClassesInSeparateFilesDir></ClassesInSeparateFilesDir><TrackingChangesEnable>False</TrackingChangesEnable><GenTrackingClasses>False</GenTrackingClasses><HidePrivateFieldInIDE>False</HidePrivateFieldInIDE><EnableSummaryComment>False</EnableSummaryComment><EnableAppInfoSettings>False</EnableAppInfoSettings><EnableExternalSchemasCache>False</EnableExternalSchemasCache><EnableDebug>False</EnableDebug><EnableWarn>True</EnableWarn><ExcludeImportedTypes>True</ExcludeImportedTypes><ExpandNesteadAttributeGroup>True</ExpandNesteadAttributeGroup><CleanupCode>False</CleanupCode><EnableXmlSerialization>True</EnableXmlSerialization><SerializeMethodName>Serialize</SerializeMethodName><DeserializeMethodName>Deserialize</DeserializeMethodName><SaveToFileMethodName>SaveToFile</SaveToFileMethodName><LoadFromFileMethodName>LoadFromFile</LoadFromFileMethodName><EnableEncoding>False</EnableEncoding><EnableXMLIndent>True</EnableXMLIndent><IndentChar>Indent2Space</IndentChar><NewLineAttr>False</NewLineAttr><OmitXML>False</OmitXML><Encoder>UTF8</Encoder><Serializer>XmlSerializer</Serializer><sspNullable>False</sspNullable><sspString>False</sspString><sspCollection>False</sspCollection><sspComplexType>False</sspComplexType><sspSimpleType>False</sspSimpleType><sspEnumType>False</sspEnumType><XmlSerializerEvent>False</XmlSerializerEvent><BaseClassName>EntityBase</BaseClassName><UseBaseClass>False</UseBaseClass><GenBaseClass>False</GenBaseClass><CustomUsings></CustomUsings><AttributesToExlude></AttributesToExlude>
''  </auto-generated>
'' ------------------------------------------------------------------------------
Imports System
Imports System.Diagnostics
Imports System.Xml.Serialization
Imports System.Collections
Imports System.Xml.Schema
Imports System.ComponentModel
Imports System.IO
Imports System.Text
Imports System.Xml
Imports System.Collections.Generic

Namespace VERAG_KundenStamm_Export

    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.2612.0"), _
     System.SerializableAttribute(), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCategoryAttribute("code"), _
     System.Xml.Serialization.XmlTypeAttribute(AnonymousType:=True), _
     System.Xml.Serialization.XmlRootAttribute([Namespace]:="", IsNullable:=False)> _
    Partial Public Class VERAG_Kundenstamm_IMPORT

#Region "Private fields"
        Private _kundenDaten As List(Of VERAG_Kundenstamm_IMPORTKundenDaten)

        Private Shared sSerializer As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New()
            Me._kundenDaten = New List(Of VERAG_Kundenstamm_IMPORTKundenDaten)()
        End Sub

        <System.Xml.Serialization.XmlElementAttribute("KundenDaten")> _
        Public Property KundenDaten() As List(Of VERAG_Kundenstamm_IMPORTKundenDaten)
            Get
                Return Me._kundenDaten
            End Get
            Set(value As List(Of VERAG_Kundenstamm_IMPORTKundenDaten))
                Me._kundenDaten = Value
            End Set
        End Property

        Private Shared ReadOnly Property Serializer() As XmlSerializer
            Get
                If (sSerializer Is Nothing) Then
                    sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(VERAG_Kundenstamm_IMPORT))
                End If
                Return sSerializer
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serializes current VERAG_Kundenstamm_IMPORT object into an XML string
        ''' </summary>
        ''' <returns>string XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As System.IO.StreamReader = Nothing
            Dim memoryStream As System.IO.MemoryStream = Nothing
            Try
                memoryStream = New System.IO.MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                xmlWriterSettings.Indent = True
                xmlWriterSettings.IndentChars = "  "
                Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
                Serializer.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New System.IO.StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes workflow markup into an VERAG_Kundenstamm_IMPORT object
        ''' </summary>
        ''' <param name="input">string workflow markup to deserialize</param>
        ''' <param name="obj">Output VERAG_Kundenstamm_IMPORT object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As VERAG_Kundenstamm_IMPORT, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, VERAG_Kundenstamm_IMPORT)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As VERAG_Kundenstamm_IMPORT) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As VERAG_Kundenstamm_IMPORT
            Dim stringReader As System.IO.StringReader = Nothing
            Try
                stringReader = New System.IO.StringReader(input)
                Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), VERAG_Kundenstamm_IMPORT)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As VERAG_Kundenstamm_IMPORT
            Return CType(Serializer.Deserialize(s), VERAG_Kundenstamm_IMPORT)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current VERAG_Kundenstamm_IMPORT object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As System.IO.StreamWriter = Nothing
            Try
                Dim xmlString As String = Serialize()
                Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
                streamWriter = xmlFile.CreateText
                streamWriter.WriteLine(xmlString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an VERAG_Kundenstamm_IMPORT object
        ''' </summary>
        ''' <param name="fileName">string xml file to load and deserialize</param>
        ''' <param name="obj">Output VERAG_Kundenstamm_IMPORT object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As VERAG_Kundenstamm_IMPORT, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, VERAG_Kundenstamm_IMPORT)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As VERAG_Kundenstamm_IMPORT) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As VERAG_Kundenstamm_IMPORT
            Dim file As System.IO.FileStream = Nothing
            Dim sr As System.IO.StreamReader = Nothing
            Try
                file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New System.IO.StreamReader(file)
                Dim xmlString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(xmlString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.2612.0"), _
     System.SerializableAttribute(), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCategoryAttribute("code"), _
     System.Xml.Serialization.XmlTypeAttribute(AnonymousType:=True)> _
    Partial Public Class VERAG_Kundenstamm_IMPORTKundenDaten

#Region "Private fields"
        Private _kundenNr As Object

        Private _eORI As Object

        Private _eORI_Niederlassung As Object

        Private _kurzname As Object

        Private _name1 As Object

        Private _name2 As Object

        Private _uID_Nr As Object

        Private _adresse As VERAG_Kundenstamm_IMPORTKundenDatenAdresse

        Private _kontakt As VERAG_Kundenstamm_IMPORTKundenDatenKontakt

        Private _aufschubkonten As List(Of VERAG_Kundenstamm_IMPORTKundenDatenAufschub)

        Private _dakosy_Mandant As Object

        Private Shared sSerializer As XmlSerializer
#End Region

        Public Sub New()
            MyBase.New()
            Me._aufschubkonten = New List(Of VERAG_Kundenstamm_IMPORTKundenDatenAufschub)()
            Me._kontakt = New VERAG_Kundenstamm_IMPORTKundenDatenKontakt()
            Me._adresse = New VERAG_Kundenstamm_IMPORTKundenDatenAdresse()
        End Sub

        Public Property KundenNr() As Object
            Get
                Return Me._kundenNr
            End Get
            Set(value As Object)
                Me._kundenNr = Value
            End Set
        End Property

        Public Property EORI() As Object
            Get
                Return Me._eORI
            End Get
            Set(value As Object)
                Me._eORI = Value
            End Set
        End Property

        Public Property EORI_Niederlassung() As Object
            Get
                Return Me._eORI_Niederlassung
            End Get
            Set(value As Object)
                Me._eORI_Niederlassung = Value
            End Set
        End Property

        Public Property Kurzname() As Object
            Get
                Return Me._kurzname
            End Get
            Set(value As Object)
                Me._kurzname = Value
            End Set
        End Property

        Public Property Name1() As Object
            Get
                Return Me._name1
            End Get
            Set(value As Object)
                Me._name1 = Value
            End Set
        End Property

        Public Property Name2() As Object
            Get
                Return Me._name2
            End Get
            Set(value As Object)
                Me._name2 = Value
            End Set
        End Property

        Public Property UID_Nr() As Object
            Get
                Return Me._uID_Nr
            End Get
            Set(value As Object)
                Me._uID_Nr = Value
            End Set
        End Property

        Public Property Adresse() As VERAG_Kundenstamm_IMPORTKundenDatenAdresse
            Get
                Return Me._adresse
            End Get
            Set(value As VERAG_Kundenstamm_IMPORTKundenDatenAdresse)
                Me._adresse = Value
            End Set
        End Property

        Public Property Kontakt() As VERAG_Kundenstamm_IMPORTKundenDatenKontakt
            Get
                Return Me._kontakt
            End Get
            Set(value As VERAG_Kundenstamm_IMPORTKundenDatenKontakt)
                Me._kontakt = Value
            End Set
        End Property

        <System.Xml.Serialization.XmlArrayItemAttribute("Aufschub", IsNullable:=False)> _
        Public Property Aufschubkonten() As List(Of VERAG_Kundenstamm_IMPORTKundenDatenAufschub)
            Get
                Return Me._aufschubkonten
            End Get
            Set(value As List(Of VERAG_Kundenstamm_IMPORTKundenDatenAufschub))
                Me._aufschubkonten = Value
            End Set
        End Property

        Public Property Dakosy_Mandant() As Object
            Get
                Return Me._dakosy_Mandant
            End Get
            Set(value As Object)
                Me._dakosy_Mandant = Value
            End Set
        End Property

        Private Shared ReadOnly Property Serializer() As XmlSerializer
            Get
                If (sSerializer Is Nothing) Then
                    sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(VERAG_Kundenstamm_IMPORTKundenDaten))
                End If
                Return sSerializer
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serializes current VERAG_Kundenstamm_IMPORTKundenDaten object into an XML string
        ''' </summary>
        ''' <returns>string XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As System.IO.StreamReader = Nothing
            Dim memoryStream As System.IO.MemoryStream = Nothing
            Try
                memoryStream = New System.IO.MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                xmlWriterSettings.Indent = True
                xmlWriterSettings.IndentChars = "  "
                Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
                Serializer.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New System.IO.StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes workflow markup into an VERAG_Kundenstamm_IMPORTKundenDaten object
        ''' </summary>
        ''' <param name="input">string workflow markup to deserialize</param>
        ''' <param name="obj">Output VERAG_Kundenstamm_IMPORTKundenDaten object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDaten, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, VERAG_Kundenstamm_IMPORTKundenDaten)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDaten) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As VERAG_Kundenstamm_IMPORTKundenDaten
            Dim stringReader As System.IO.StringReader = Nothing
            Try
                stringReader = New System.IO.StringReader(input)
                Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), VERAG_Kundenstamm_IMPORTKundenDaten)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As VERAG_Kundenstamm_IMPORTKundenDaten
            Return CType(Serializer.Deserialize(s), VERAG_Kundenstamm_IMPORTKundenDaten)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current VERAG_Kundenstamm_IMPORTKundenDaten object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As System.IO.StreamWriter = Nothing
            Try
                Dim xmlString As String = Serialize()
                Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
                streamWriter = xmlFile.CreateText
                streamWriter.WriteLine(xmlString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an VERAG_Kundenstamm_IMPORTKundenDaten object
        ''' </summary>
        ''' <param name="fileName">string xml file to load and deserialize</param>
        ''' <param name="obj">Output VERAG_Kundenstamm_IMPORTKundenDaten object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDaten, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, VERAG_Kundenstamm_IMPORTKundenDaten)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDaten) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As VERAG_Kundenstamm_IMPORTKundenDaten
            Dim file As System.IO.FileStream = Nothing
            Dim sr As System.IO.StreamReader = Nothing
            Try
                file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New System.IO.StreamReader(file)
                Dim xmlString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(xmlString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.2612.0"), _
     System.SerializableAttribute(), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCategoryAttribute("code"), _
     System.Xml.Serialization.XmlTypeAttribute(AnonymousType:=True)> _
    Partial Public Class VERAG_Kundenstamm_IMPORTKundenDatenAdresse

#Region "Private fields"
        Private _landKz As Object

        Private _plz As Object

        Private _ort As Object

        Private _strasse As Object

        Private Shared sSerializer As XmlSerializer
#End Region

        Public Property LandKz() As Object
            Get
                Return Me._landKz
            End Get
            Set(value As Object)
                Me._landKz = Value
            End Set
        End Property

        Public Property Plz() As Object
            Get
                Return Me._plz
            End Get
            Set(value As Object)
                Me._plz = Value
            End Set
        End Property

        Public Property Ort() As Object
            Get
                Return Me._ort
            End Get
            Set(value As Object)
                Me._ort = Value
            End Set
        End Property

        Public Property Strasse() As Object
            Get
                Return Me._strasse
            End Get
            Set(value As Object)
                Me._strasse = Value
            End Set
        End Property

        Private Shared ReadOnly Property Serializer() As XmlSerializer
            Get
                If (sSerializer Is Nothing) Then
                    sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(VERAG_Kundenstamm_IMPORTKundenDatenAdresse))
                End If
                Return sSerializer
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serializes current VERAG_Kundenstamm_IMPORTKundenDatenAdresse object into an XML string
        ''' </summary>
        ''' <returns>string XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As System.IO.StreamReader = Nothing
            Dim memoryStream As System.IO.MemoryStream = Nothing
            Try
                memoryStream = New System.IO.MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                xmlWriterSettings.Indent = True
                xmlWriterSettings.IndentChars = "  "
                Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
                Serializer.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New System.IO.StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes workflow markup into an VERAG_Kundenstamm_IMPORTKundenDatenAdresse object
        ''' </summary>
        ''' <param name="input">string workflow markup to deserialize</param>
        ''' <param name="obj">Output VERAG_Kundenstamm_IMPORTKundenDatenAdresse object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDatenAdresse, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, VERAG_Kundenstamm_IMPORTKundenDatenAdresse)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDatenAdresse) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As VERAG_Kundenstamm_IMPORTKundenDatenAdresse
            Dim stringReader As System.IO.StringReader = Nothing
            Try
                stringReader = New System.IO.StringReader(input)
                Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), VERAG_Kundenstamm_IMPORTKundenDatenAdresse)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As VERAG_Kundenstamm_IMPORTKundenDatenAdresse
            Return CType(Serializer.Deserialize(s), VERAG_Kundenstamm_IMPORTKundenDatenAdresse)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current VERAG_Kundenstamm_IMPORTKundenDatenAdresse object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As System.IO.StreamWriter = Nothing
            Try
                Dim xmlString As String = Serialize()
                Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
                streamWriter = xmlFile.CreateText
                streamWriter.WriteLine(xmlString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an VERAG_Kundenstamm_IMPORTKundenDatenAdresse object
        ''' </summary>
        ''' <param name="fileName">string xml file to load and deserialize</param>
        ''' <param name="obj">Output VERAG_Kundenstamm_IMPORTKundenDatenAdresse object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDatenAdresse, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, VERAG_Kundenstamm_IMPORTKundenDatenAdresse)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDatenAdresse) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As VERAG_Kundenstamm_IMPORTKundenDatenAdresse
            Dim file As System.IO.FileStream = Nothing
            Dim sr As System.IO.StreamReader = Nothing
            Try
                file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New System.IO.StreamReader(file)
                Dim xmlString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(xmlString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.2612.0"), _
     System.SerializableAttribute(), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCategoryAttribute("code"), _
     System.Xml.Serialization.XmlTypeAttribute(AnonymousType:=True)> _
    Partial Public Class VERAG_Kundenstamm_IMPORTKundenDatenKontakt

#Region "Private fields"
        Private _eMail As Object

        Private _tel As Object

        Private _fax As Object

        Private _ansprechpartner As Object

        Private Shared sSerializer As XmlSerializer
#End Region

        Public Property EMail() As Object
            Get
                Return Me._eMail
            End Get
            Set(value As Object)
                Me._eMail = Value
            End Set
        End Property

        Public Property Tel() As Object
            Get
                Return Me._tel
            End Get
            Set(value As Object)
                Me._tel = Value
            End Set
        End Property

        Public Property Fax() As Object
            Get
                Return Me._fax
            End Get
            Set(value As Object)
                Me._fax = Value
            End Set
        End Property

        Public Property Ansprechpartner() As Object
            Get
                Return Me._ansprechpartner
            End Get
            Set(value As Object)
                Me._ansprechpartner = Value
            End Set
        End Property

        Private Shared ReadOnly Property Serializer() As XmlSerializer
            Get
                If (sSerializer Is Nothing) Then
                    sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(VERAG_Kundenstamm_IMPORTKundenDatenKontakt))
                End If
                Return sSerializer
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serializes current VERAG_Kundenstamm_IMPORTKundenDatenKontakt object into an XML string
        ''' </summary>
        ''' <returns>string XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As System.IO.StreamReader = Nothing
            Dim memoryStream As System.IO.MemoryStream = Nothing
            Try
                memoryStream = New System.IO.MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                xmlWriterSettings.Indent = True
                xmlWriterSettings.IndentChars = "  "
                Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
                Serializer.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New System.IO.StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes workflow markup into an VERAG_Kundenstamm_IMPORTKundenDatenKontakt object
        ''' </summary>
        ''' <param name="input">string workflow markup to deserialize</param>
        ''' <param name="obj">Output VERAG_Kundenstamm_IMPORTKundenDatenKontakt object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDatenKontakt, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, VERAG_Kundenstamm_IMPORTKundenDatenKontakt)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDatenKontakt) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As VERAG_Kundenstamm_IMPORTKundenDatenKontakt
            Dim stringReader As System.IO.StringReader = Nothing
            Try
                stringReader = New System.IO.StringReader(input)
                Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), VERAG_Kundenstamm_IMPORTKundenDatenKontakt)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As VERAG_Kundenstamm_IMPORTKundenDatenKontakt
            Return CType(Serializer.Deserialize(s), VERAG_Kundenstamm_IMPORTKundenDatenKontakt)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current VERAG_Kundenstamm_IMPORTKundenDatenKontakt object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As System.IO.StreamWriter = Nothing
            Try
                Dim xmlString As String = Serialize()
                Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
                streamWriter = xmlFile.CreateText
                streamWriter.WriteLine(xmlString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an VERAG_Kundenstamm_IMPORTKundenDatenKontakt object
        ''' </summary>
        ''' <param name="fileName">string xml file to load and deserialize</param>
        ''' <param name="obj">Output VERAG_Kundenstamm_IMPORTKundenDatenKontakt object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDatenKontakt, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, VERAG_Kundenstamm_IMPORTKundenDatenKontakt)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDatenKontakt) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As VERAG_Kundenstamm_IMPORTKundenDatenKontakt
            Dim file As System.IO.FileStream = Nothing
            Dim sr As System.IO.StreamReader = Nothing
            Try
                file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New System.IO.StreamReader(file)
                Dim xmlString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(xmlString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.2612.0"), _
     System.SerializableAttribute(), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCategoryAttribute("code"), _
     System.Xml.Serialization.XmlTypeAttribute(AnonymousType:=True)> _
    Partial Public Class VERAG_Kundenstamm_IMPORTKundenDatenAufschub

#Region "Private fields"
        Private _art As VERAG_Kundenstamm_IMPORTKundenDatenAufschubArt

        Private _hauptzollamt As String

        Private _kontoNr As Object

        Private _bIN As Object

        Private _eORI As Object

        Private _eORI_Niederlassung As Object

        Private Shared sSerializer As XmlSerializer
#End Region

        Public Property Art() As VERAG_Kundenstamm_IMPORTKundenDatenAufschubArt
            Get
                Return Me._art
            End Get
            Set(value As VERAG_Kundenstamm_IMPORTKundenDatenAufschubArt)
                Me._art = Value
            End Set
        End Property

        Public Property Hauptzollamt() As String
            Get
                Return Me._hauptzollamt
            End Get
            Set(value As String)
                Me._hauptzollamt = Value
            End Set
        End Property

        Public Property KontoNr() As Object
            Get
                Return Me._kontoNr
            End Get
            Set(value As Object)
                Me._kontoNr = Value
            End Set
        End Property

        Public Property BIN() As Object
            Get
                Return Me._bIN
            End Get
            Set(value As Object)
                Me._bIN = Value
            End Set
        End Property

        Public Property EORI() As Object
            Get
                Return Me._eORI
            End Get
            Set(value As Object)
                Me._eORI = Value
            End Set
        End Property

        Public Property EORI_Niederlassung() As Object
            Get
                Return Me._eORI_Niederlassung
            End Get
            Set(value As Object)
                Me._eORI_Niederlassung = Value
            End Set
        End Property

        Private Shared ReadOnly Property Serializer() As XmlSerializer
            Get
                If (sSerializer Is Nothing) Then
                    sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(VERAG_Kundenstamm_IMPORTKundenDatenAufschub))
                End If
                Return sSerializer
            End Get
        End Property

#Region "Serialize/Deserialize"
        ''' <summary>
        ''' Serializes current VERAG_Kundenstamm_IMPORTKundenDatenAufschub object into an XML string
        ''' </summary>
        ''' <returns>string XML value</returns>
        Public Overridable Function Serialize() As String
            Dim streamReader As System.IO.StreamReader = Nothing
            Dim memoryStream As System.IO.MemoryStream = Nothing
            Try
                memoryStream = New System.IO.MemoryStream()
                Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
                xmlWriterSettings.Indent = True
                xmlWriterSettings.IndentChars = "  "
                Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
                Serializer.Serialize(xmlWriter, Me)
                memoryStream.Seek(0, SeekOrigin.Begin)
                streamReader = New System.IO.StreamReader(memoryStream)
                Return streamReader.ReadToEnd
            Finally
                If (Not (streamReader) Is Nothing) Then
                    streamReader.Dispose()
                End If
                If (Not (memoryStream) Is Nothing) Then
                    memoryStream.Dispose()
                End If
            End Try
        End Function

        ''' <summary>
        ''' Deserializes workflow markup into an VERAG_Kundenstamm_IMPORTKundenDatenAufschub object
        ''' </summary>
        ''' <param name="input">string workflow markup to deserialize</param>
        ''' <param name="obj">Output VERAG_Kundenstamm_IMPORTKundenDatenAufschub object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDatenAufschub, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, VERAG_Kundenstamm_IMPORTKundenDatenAufschub)
            Try
                obj = Deserialize(input)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDatenAufschub) As Boolean
            Dim exception As System.Exception = Nothing
            Return Deserialize(input, obj, exception)
        End Function

        Public Overloads Shared Function Deserialize(ByVal input As String) As VERAG_Kundenstamm_IMPORTKundenDatenAufschub
            Dim stringReader As System.IO.StringReader = Nothing
            Try
                stringReader = New System.IO.StringReader(input)
                Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), VERAG_Kundenstamm_IMPORTKundenDatenAufschub)
            Finally
                If (Not (stringReader) Is Nothing) Then
                    stringReader.Dispose()
                End If
            End Try
        End Function

        Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As VERAG_Kundenstamm_IMPORTKundenDatenAufschub
            Return CType(Serializer.Deserialize(s), VERAG_Kundenstamm_IMPORTKundenDatenAufschub)
        End Function
#End Region

        ''' <summary>
        ''' Serializes current VERAG_Kundenstamm_IMPORTKundenDatenAufschub object into file
        ''' </summary>
        ''' <param name="fileName">full path of outupt xml file</param>
        ''' <param name="exception">output Exception value if failed</param>
        ''' <returns>true if can serialize and save into file; otherwise, false</returns>
        Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            Try
                SaveToFile(fileName)
                Return True
            Catch e As System.Exception
                exception = e
                Return False
            End Try
        End Function

        Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
            Dim streamWriter As System.IO.StreamWriter = Nothing
            Try
                Dim xmlString As String = Serialize()
                Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
                streamWriter = xmlFile.CreateText
                streamWriter.WriteLine(xmlString)
                streamWriter.Close()
            Finally
                If (Not (streamWriter) Is Nothing) Then
                    streamWriter.Dispose()
                End If
            End Try
        End Sub

        ''' <summary>
        ''' Deserializes xml markup from file into an VERAG_Kundenstamm_IMPORTKundenDatenAufschub object
        ''' </summary>
        ''' <param name="fileName">string xml file to load and deserialize</param>
        ''' <param name="obj">Output VERAG_Kundenstamm_IMPORTKundenDatenAufschub object</param>
        ''' <param name="exception">output Exception value if deserialize failed</param>
        ''' <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDatenAufschub, ByRef exception As System.Exception) As Boolean
            exception = Nothing
            obj = CType(Nothing, VERAG_Kundenstamm_IMPORTKundenDatenAufschub)
            Try
                obj = LoadFromFile(fileName)
                Return True
            Catch ex As System.Exception
                exception = ex
                Return False
            End Try
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As VERAG_Kundenstamm_IMPORTKundenDatenAufschub) As Boolean
            Dim exception As System.Exception = Nothing
            Return LoadFromFile(fileName, obj, exception)
        End Function

        Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As VERAG_Kundenstamm_IMPORTKundenDatenAufschub
            Dim file As System.IO.FileStream = Nothing
            Dim sr As System.IO.StreamReader = Nothing
            Try
                file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
                sr = New System.IO.StreamReader(file)
                Dim xmlString As String = sr.ReadToEnd
                sr.Close()
                file.Close()
                Return Deserialize(xmlString)
            Finally
                If (Not (file) Is Nothing) Then
                    file.Dispose()
                End If
                If (Not (sr) Is Nothing) Then
                    sr.Dispose()
                End If
            End Try
        End Function
    End Class

    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.2612.0"), _
     System.SerializableAttribute(), _
     System.Xml.Serialization.XmlTypeAttribute(AnonymousType:=True)> _
    Public Enum VERAG_Kundenstamm_IMPORTKundenDatenAufschubArt

        '''<remarks/>
        <System.Xml.Serialization.XmlEnumAttribute("10")> _
        Item10

        '''<remarks/>
        <System.Xml.Serialization.XmlEnumAttribute("15")> _
        Item15

        '''<remarks/>
        <System.Xml.Serialization.XmlEnumAttribute("20")> _
        Item20
    End Enum
End Namespace
