Esempio n. 1
0
 public ImmutableArray <SymbolDisplayPart> ToMinimalDisplayParts(
     SemanticModel semanticModel,
     int position,
     SymbolDisplayFormat format = null)
 {
     return(SymbolDisplay.ToMinimalDisplayParts(this, semanticModel, position, format));
 }
Esempio n. 2
0
        ImmutableArray <SymbolDisplayPart> ISymbol.ToMinimalDisplayParts(
            SemanticModel semanticModel,
            int position,
            SymbolDisplayFormat format)
        {
            SemanticModel csharpModel = semanticModel as SemanticModel;

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

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