You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
// Copyright (c) 2010 AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) |
|
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) |
|
|
|
using System; |
|
using System.Collections.Generic; |
|
using System.Collections.ObjectModel; |
|
|
|
using ICSharpCode.NRefactory.TypeSystem; |
|
|
|
namespace ICSharpCode.NRefactory.CSharp.Resolver |
|
{ |
|
/// <summary> |
|
/// Represents a group of methods. |
|
/// </summary> |
|
public class MethodGroupResolveResult : ResolveResult |
|
{ |
|
readonly ReadOnlyCollection<IMethod> methods; |
|
readonly ReadOnlyCollection<IType> typeArguments; |
|
|
|
public MethodGroupResolveResult(IList<IMethod> methods, IList<IType> typeArguments) : base(SharedTypes.UnknownType) |
|
{ |
|
if (methods == null) |
|
throw new ArgumentNullException("methods"); |
|
this.methods = new ReadOnlyCollection<IMethod>(methods); |
|
this.typeArguments = new ReadOnlyCollection<IType>(typeArguments); |
|
} |
|
|
|
public ReadOnlyCollection<IMethod> Methods { |
|
get { return methods; } |
|
} |
|
|
|
public ReadOnlyCollection<IType> TypeArguments { |
|
get { return typeArguments; } |
|
} |
|
|
|
public override string ToString() |
|
{ |
|
return string.Format("[{0} with {1} method(s)]", GetType().Name, methods.Count); |
|
} |
|
} |
|
}
|
|
|