📄 itypeparameter.cs
字号:
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Daniel Grunwald" email="daniel@danielgrunwald.de"/>
// <version>$Revision: 915 $</version>
// </file>
using System;
using System.Reflection;
using System.Collections.Generic;
namespace ICSharpCode.SharpDevelop.Dom
{
/// <summary>
/// Type parameter of a generic class/method.
/// </summary>
public interface ITypeParameter
{
/// <summary>
/// The name of the type parameter (for example "T")
/// </summary>
string Name { get; }
int Index { get; }
IList<IAttribute> Attributes { get; }
/// <summary>
/// The method this type parameter is defined for.
/// This property is null when the type parameter is for a class.
/// </summary>
IMethod Method { get; }
/// <summary>
/// The class this type parameter is defined for.
/// When the type parameter is defined for a method, this is the class containing
/// that method.
/// </summary>
IClass Class { get; }
/// <summary>
/// Gets the contraints of this type parameter.
/// </summary>
IList<IReturnType> Constraints { get; }
/// <summary>
/// Gets if the type parameter has the 'new' constraint.
/// </summary>
bool HasConstructableContraint { get; }
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -