SourceLocation.Subtraction(SourceLocation, SourceLocation) 运算符

定义

减去 2 SourceLocations。

public:
 static Microsoft::AspNetCore::Razor::SourceLocation operator -(Microsoft::AspNetCore::Razor::SourceLocation left, Microsoft::AspNetCore::Razor::SourceLocation right);
public static Microsoft.AspNetCore.Razor.SourceLocation operator - (Microsoft.AspNetCore.Razor.SourceLocation left, Microsoft.AspNetCore.Razor.SourceLocation right);
static member ( - ) : Microsoft.AspNetCore.Razor.SourceLocation * Microsoft.AspNetCore.Razor.SourceLocation -> Microsoft.AspNetCore.Razor.SourceLocation
Public Shared Operator - (left As SourceLocation, right As SourceLocation) As SourceLocation

参数

left
SourceLocation

左操作数。

right
SourceLocation

右操作数。

返回

一个 SourceLocation ,它是左操作数和右操作数的差值。

例外

FilePath如果左操作数和右操作数的 不同,则为 。

适用于