📄 simple.asmx
字号:
<%@ WebService Language="VB" class="Fibonacci" %>
Imports System.Web.Services
Imports System.Web.Services.Protocols
Public Class SimpleSoapHeader
Inherits SoapHeader
public value As string
End Class
public class Fibonacci
Inherits WebService
public simpleHeader As SimpleSoapHeader
<WebMethod, SoapHeader("simpleHeader")> _
public Function GetSeqNumber (FibIndex as Integer) as Integer
Dim FibArray(2) as Integer
Dim i as Integer
FibArray(0) = 0
FibArray(1) = 1
For i = 3 to FibIndex
FibArray(1) = FibArray(1) + FibArray(0)
FibArray(0) = FibArray(1) - FibArray(0)
Next
return FibArray(1)
End Function
end class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -