返回在C#元数据中使用 [英] back tick use in C# metadata

查看:113
本文介绍了返回在C#元数据中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VS 2017中,C#元数据经常显示为Nullable`1之类的术语和IDictionary`2(这些是名称中的后面的刻度),其中包含真正的类型名称。 这是
分散注意力的混乱。  有人知道如何避免这种情况吗?

解决方案

你好,


SimpleTypeSpec`NUMBER表示具有1到n个泛型类型参数的开放泛型类型。


https://docs.microsoft.com/en-us/dotnet/framework/reflection-and-codedom/指定完全限定类型名称#pecigure-generic-types



In VS 2017, C# metadata is frequently displayed with terms like Nullable`1 and IDictionary`2 (those are back ticks in the names) where real type names are expected.  This is distracting clutter.  Anybody know how to avoid this?

解决方案

Hello,

SimpleTypeSpec`NUMBER represents an open generic type with from 1 to n generic type parameters.

https://docs.microsoft.com/en-us/dotnet/framework/reflection-and-codedom/specifying-fully-qualified-type-names#specifying-generic-types


这篇关于返回在C#元数据中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆