itypeparameter.cs
来自「SharpDevelop2.0.0 c#开发免费工具」· CS 代码 · 共 52 行
CS
52 行
// <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 + =
减小字号Ctrl + -
显示快捷键?