public static InflatedCollectionCollector Collect(TypeDefinition type) { InflatedCollectionCollector generics = new InflatedCollectionCollector(); GenericContextFreeVisitor visitor = new GenericContextFreeVisitor(generics); Unity.Cecil.Visitor.Extensions.Accept(type, visitor); return generics; }
public static InflatedCollectionCollector Collect(TypeDefinition type) { InflatedCollectionCollector generics = new InflatedCollectionCollector(); GenericContextFreeVisitor visitor = new GenericContextFreeVisitor(generics); type.Accept(visitor); return(generics); }