在方法重载中什么叫做方法签名(method signature)什么又叫做方法原型(method prototype)有什么不同?
原题是这样问的:Considermethodoverloading.Whatisamethodprototype?Whatisamethodsignature?Whati...
原题是这样问的:Consider method overloading.What is a method prototype?What is a method signature?What is the difference?
谢谢回答了啊!!!我都要急死了!!! 展开
谢谢回答了啊!!!我都要急死了!!! 展开
1个回答
展开全部
If SqlConn Is Nothing = False Then
SqlConn.Dispose()
SqlConn = Nothing
End If
End Sub
Public Sub Open()
If SqlConn Is Nothing = True Then
SqlConn = New SqlConnection(Me.sConn)
SqlConn.Open()
End If
End Sub
Public Sub Close()
If SqlConn Is Nothing = False Then
SqlConn.Close()
End If
End Sub
Public Function RunSelectSQL(ByVal sSQLString As System.String) As DataView
Me.Open()
Dim SqlDS As DataSet = New DataSet
Dim SqlDA As SqlDataAdapter = New SqlDataAdapter(sSQLString, Me.SqlConn)
SqlDA.Fill(SqlDS)
Return SqlDS.Tables(0).DefaultView
End Function
Public Function RunDelOrInsSQL(ByVal sSQLString As System.String)
Me.Open()
Dim sqlcomm As SqlCommand = New SqlCommand(sSQLString, Me.SqlConn)
sqlcomm.ExecuteNonQuery()
End Function
End Class
SqlConn.Dispose()
SqlConn = Nothing
End If
End Sub
Public Sub Open()
If SqlConn Is Nothing = True Then
SqlConn = New SqlConnection(Me.sConn)
SqlConn.Open()
End If
End Sub
Public Sub Close()
If SqlConn Is Nothing = False Then
SqlConn.Close()
End If
End Sub
Public Function RunSelectSQL(ByVal sSQLString As System.String) As DataView
Me.Open()
Dim SqlDS As DataSet = New DataSet
Dim SqlDA As SqlDataAdapter = New SqlDataAdapter(sSQLString, Me.SqlConn)
SqlDA.Fill(SqlDS)
Return SqlDS.Tables(0).DefaultView
End Function
Public Function RunDelOrInsSQL(ByVal sSQLString As System.String)
Me.Open()
Dim sqlcomm As SqlCommand = New SqlCommand(sSQLString, Me.SqlConn)
sqlcomm.ExecuteNonQuery()
End Function
End Class
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询