Esempio n. 1
0
        internal static DefFormatStrings From(ISymbol symbol, SymbolExtensions.KeyData key, string typeString)
        {
            var name = new QualFormatStrings
            {
                Unqualified             = symbol.ToDisplayString(Unqualified),
                ScopeQualified          = symbol.ToDisplayString(ScopeQualified),
                DepQualified            = symbol.ToDisplayString(DepQualified),
                RepositoryWideQualified = symbol.ToDisplayString(RepositoryWideQualified),
                LanguageWideQualified   = symbol.ToDisplayString(LanguageWideQualified)
            };

            var type = QualFormatStrings.Single(typeString);

            return(new DefFormatStrings
            {
                Name = name,
                Type = type,
                NameAndTypeSeparator = " ",
                Language = "C#",
                DefKeyword = "",
                Kind = typeString
            });
        }
Esempio n. 2
0
    internal static DefFormatStrings From(ISymbol symbol, SymbolExtensions.KeyData key, string typeString)
    {
      var name = new QualFormatStrings
      {
        Unqualified = symbol.ToDisplayString(Unqualified),
        ScopeQualified = symbol.ToDisplayString(ScopeQualified),
        DepQualified = symbol.ToDisplayString(DepQualified),
        RepositoryWideQualified = symbol.ToDisplayString(RepositoryWideQualified),
        LanguageWideQualified = symbol.ToDisplayString(LanguageWideQualified)
      };

      var type = QualFormatStrings.Single(typeString);

      return new DefFormatStrings
      {
        Name = name,
        Type = type,
        NameAndTypeSeparator = " ",
        Language = "C#",
        DefKeyword = "",
        Kind = typeString
      };
    }