Class MethodListWithDeclaringType
- Namespace
- ICSharpCode.Decompiler.CSharp.Resolver
- Assembly
- ICSharpCode.Decompiler.dll
A method list that belongs to a declaring type.
public class MethodListWithDeclaringType : List<IParameterizedMember>, IList<IParameterizedMember>, ICollection<IParameterizedMember>, IList, ICollection, IReadOnlyList<IParameterizedMember>, IReadOnlyCollection<IParameterizedMember>, IEnumerable<IParameterizedMember>, IEnumerable
- Inheritance
-
MethodListWithDeclaringType
- Implements
- Inherited Members
- Extension Methods
Constructors
MethodListWithDeclaringType(IType)
public MethodListWithDeclaringType(IType declaringType)
Parameters
declaringType
IType
MethodListWithDeclaringType(IType, IEnumerable<IParameterizedMember>)
public MethodListWithDeclaringType(IType declaringType, IEnumerable<IParameterizedMember> methods)
Parameters
declaringType
ITypemethods
IEnumerable<IParameterizedMember>
Properties
DeclaringType
The declaring type.
public IType DeclaringType { get; }
Property Value
Remarks
Not all methods in this list necessarily have this as their declaring type. For example, this program:
class Base {
public virtual void M() {}
}
class Derived : Base {
public override void M() {}
public void M(int i) {}
}
results in two lists:
new MethodListWithDeclaringType(Base) { Derived.M() }
,
new MethodListWithDeclaringType(Derived) { Derived.M(int) }