我正在处理一个dll,我在VB.NET中没有任何示例源代码。程序集告诉我,我想调用的子代码如下:
Public Sub [Operator](image As MatrixBase, ByRef detections As IEnumerable(Of RectDetection), Optional threshold As Double = 0)
我想知道我是否真的必须这样称呼它:
SomeClass.Operator(SomeInput)
“操作员”这个词让我很紧张。
有更美妙的方式吗?
谢谢。
仅供参考,这是DLL的整个程序集:
#Region "Assembly DlibDotNet, Version=19.15.0.0, Culture=neutral, PublicKeyToken=null"
' D:\Dev\Projects\faceshift\faceshift\packages\DlibDotNet.19.15.0.20180916\lib\netstandard2.0\DlibDotNet.dll
#End Region
Imports System.Collections.Generic
Namespace DlibDotNet
Public NotInheritable Class FrontalFaceDetector
Inherits DlibObject
Public Sub [Operator](image As MatrixBase, ByRef detections As IEnumerable(Of RectDetection), Optional threshold As Double = 0)
Protected Overrides Sub DisposeUnmanaged()
Public Function [Operator](image As Array2DBase, Optional threshold As Double = 0) As Rectangle()
Public Function [Operator](image As MatrixBase, Optional threshold As Double = 0) As Rectangle()
End Class
End Namespace
我不知道为什么Operator
这个词会让你紧张,所以我无法解决这个问题,但是就像它的声明你可以用方括号调用方法:
FrontalFaceDetector.[Operator]( ... )
不过,我个人更喜欢没有它们。