SourceLocation.Addition(SourceLocation, SourceLocation) 运算符

定义

添加两 SourceLocation个 s。

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如果左操作数和右操作数的 不同,并且两者都不为 null,则为 。

适用于