Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@123 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
10 changed files with 125 additions and 22 deletions
@ -0,0 +1,22 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
|
// <license see="prj:///doc/license.txt"/>
|
||||||
|
// <owner name="Daniel Grunwald" email="daniel@danielgrunwald.de"/>
|
||||||
|
// <version value="$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 |
||||||
|
{ |
||||||
|
string Name { get; } |
||||||
|
// TODO: Constraint
|
||||||
|
} |
||||||
|
} |
@ -0,0 +1,37 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
|
// <license see="prj:///doc/license.txt"/>
|
||||||
|
// <owner name="Daniel Grunwald" email="daniel@danielgrunwald.de"/>
|
||||||
|
// <version value="$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 class DefaultTypeParameter : ITypeParameter |
||||||
|
{ |
||||||
|
string name; |
||||||
|
|
||||||
|
public string Name { |
||||||
|
get { |
||||||
|
return name; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public DefaultTypeParameter(string name) |
||||||
|
{ |
||||||
|
this.name = name; |
||||||
|
} |
||||||
|
|
||||||
|
public DefaultTypeParameter(Type type) |
||||||
|
{ |
||||||
|
this.name = type.Name; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue