单引号
str='this is a string'
单引号字符串的限制:
- 单引号里的任何字符都会原样输出,单引号字符串中的变量是无效的
- 单引号字串中不能出现单引号(对单引号使用转义符后也不行)
双引号
your_name='qinjx'
str="Hello, I know your are \"$your_name\"! \n"
- 双引号里可以有变量
- 双引号里可以出现转义字符
str='this is a string'
单引号字符串的限制:
your_name='qinjx'
str="Hello, I know your are \"$your_name\"! \n"
工作空间有已打开的同名工程导致,删掉同名工程再导入即可。
Those are generic type constraints. In your case there are two of them:
where T : class
Means that the type T must be a reference type (not a value type).
where T : new()