function
Publicado por juan coloma (1 intervención) el 31/10/2008 01:49:35
tengo esto en VB.NET 2005
Public Function PasaAlbumes(ByVal str As String) As String
Dim strAlbum As String
strAlbum = str.ToUpper
Return strAlbum
End Function
Public Sub pasaAlbumes()
Dim str As String
Dim auxarreglo As New ArrayList
For i As Integer = 0 To arreglo.Count - 1
Dim can As Cancion
can = CType(arreglo.Item(i), Cancion)
str = PasaAlbumes(can._str)
auxarreglo.Add(str)
Next
arreglo = auxarreglo
End Sub
y lo necesito en C#.NET 2005
pero no se como escribir el FUNCTION en C#
soy estudiante!!... gracias
Public Function PasaAlbumes(ByVal str As String) As String
Dim strAlbum As String
strAlbum = str.ToUpper
Return strAlbum
End Function
Public Sub pasaAlbumes()
Dim str As String
Dim auxarreglo As New ArrayList
For i As Integer = 0 To arreglo.Count - 1
Dim can As Cancion
can = CType(arreglo.Item(i), Cancion)
str = PasaAlbumes(can._str)
auxarreglo.Add(str)
Next
arreglo = auxarreglo
End Sub
y lo necesito en C#.NET 2005
pero no se como escribir el FUNCTION en C#
soy estudiante!!... gracias
Valora esta pregunta


0