// 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 { /// /// Represents a group of methods. /// public class MethodGroupResolveResult : ResolveResult { readonly ReadOnlyCollection methods; readonly ReadOnlyCollection typeArguments; public MethodGroupResolveResult(IList methods, IList typeArguments) : base(SharedTypes.UnknownType) { if (methods == null) throw new ArgumentNullException("methods"); this.methods = new ReadOnlyCollection(methods); this.typeArguments = new ReadOnlyCollection(typeArguments); } public ReadOnlyCollection Methods { get { return methods; } } public ReadOnlyCollection TypeArguments { get { return typeArguments; } } public override string ToString() { return string.Format("[{0} with {1} method(s)]", GetType().Name, methods.Count); } } }