Advertisement
Guest User

Untitled

a guest
May 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. Implements IServicevb
  2.  
  3. Public Sub New()
  4. End Sub
  5.  
  6. Public Function GetData(ByVal value As Integer) As String Implements IServicevb.GetData
  7. Return String.Format("You entered: {0}", value)
  8. End Function
  9.  
  10. Public Function GetDataUsingDataContract(ByVal composite As CompositeType) As CompositeType Implements IServicevb.GetDataUsingDataContract
  11. If composite.BoolValue Then
  12. composite.StringValue = (composite.StringValue & "Suffix")
  13. End If
  14. Return composite
  15. End Function
  16. Public Function getSquare(ByVal i As Integer) As Integer Implements IServicevb.getSquare
  17.  
  18. Return i * i
  19. End Function
  20.  
  21. Public Function getRandomInt(ByVal Min As Integer, ByVal Max As Integer) As Integer Implements IServicevb.getRandomInt
  22. Dim Generator As System.Random = New System.Random()
  23. Return Generator.Next(Min, Max)
  24.  
  25. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement