结构体 AgentType
将代理的类型表示为一个字符串。 这是一个围绕字符串的强类型包装器,确保在使用代理类型时具有类型安全性。
public struct AgentType
- 继承的成员
备注
此结构体是不可变的,并提供与 string 之间的隐式转换。
字段
Name
此代理类型的字符串表示形式。
public required string Name
字段值
运算符
explicit operator AgentType(Type)
public static explicit operator AgentType(Type type)
参数
返回值
implicit operator string(AgentType)
public static implicit operator string(AgentType type)
参数
返回值
- string
代理类型的字符串表示形式。
implicit operator AgentType(string)
public static implicit operator AgentType(string type)
参数
type
string代理类型的字符串表示形式。