ICE 3.4.2
[php5-ice-freebsdport.git] / vb / demo / Ice / value / DerivedPrinterI.vb
bloba42bae993c745862c3a1a26bf57b61d0dea72628
1 ' **********************************************************************
3 ' Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 ' This copy of Ice is licensed to you under the terms described in the
6 ' ICE_LICENSE file included in this distribution.
8 ' **********************************************************************
10 Imports Demo
12 Public Class DerivedPrinterI
13 Inherits DerivedPrinter
15 Public Overloads Overrides Sub printBackwards(ByVal current As Ice.Current)
16 Dim arr() As Char = message.ToCharArray()
17 For i As Integer = 0 To arr.Length / 2 - 1
18 Dim tmp As Char = arr(arr.Length - i - 1)
19 arr(arr.Length - i - 1) = arr(i)
20 arr(i) = tmp
21 Next
22 System.Console.Out.WriteLine(New String(arr))
23 End Sub
25 Public Overloads Overrides Sub printUppercase(ByVal current As Ice.Current)
26 System.Console.Out.WriteLine(derivedMessage.ToUpper())
27 End Sub
29 End Class