提交 d393266d 编写于 作者: D David Poeschl

PR Feedback

上级 55bb2047
......@@ -51,29 +51,20 @@ public AddParameterDialogViewModel(Document document, int insertPosition)
public string CallSiteValue { get; set; }
private SymbolDisplayFormat _symbolDisplayFormat = new SymbolDisplayFormat(
private static readonly SymbolDisplayFormat s_symbolDisplayFormat = new SymbolDisplayFormat(
genericsOptions: SymbolDisplayGenericsOptions.IncludeTypeParameters,
miscellaneousOptions: SymbolDisplayMiscellaneousOptions.UseSpecialTypes);
public ITypeSymbol? TypeSymbol { get; set; }
public string? TypeName
{
get
{
return TypeSymbol?.ToDisplayString(_symbolDisplayFormat);
}
}
public string? TypeName => TypeSymbol?.ToDisplayString(s_symbolDisplayFormat);
public bool TypeBinds => !TypeSymbol!.IsErrorType();
private bool _isRequired;
public bool IsRequired
{
get
{
return _isRequired;
}
get => _isRequired;
set
{
if (SetProperty(ref _isRequired, value))
......@@ -94,10 +85,7 @@ public bool IsRequired
public bool IsOptional
{
get
{
return !_isRequired;
}
get => !_isRequired;
set
{
if (_isRequired == value)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册