Пример #1
0
 public string ToMinimalDisplayString(
     SemanticModel semanticModel,
     int position,
     SymbolDisplayFormat format = null)
 {
     return(SymbolDisplay.ToMinimalDisplayString(this, semanticModel, position, format));
 }
Пример #2
0
        string ISymbol.ToMinimalDisplayString(
            SemanticModel semanticModel,
            int position,
            SymbolDisplayFormat format)
        {
            SemanticModel csharpModel = semanticModel as SemanticModel;

            if (csharpModel == null)
            {
                throw new ArgumentException(CSharpResources.WrongSemanticModelType, this.Language);
            }

            return(SymbolDisplay.ToMinimalDisplayString(this, csharpModel, position, format));
        }