public void add(TypeDef t) { types.add(t); }
public EventRef(EventReference eventReference, TypeDef owner, int index) : base(eventReference, owner, index) { }
public PropertyRef(PropertyReference propertyReference, TypeDef owner, int index) : base(propertyReference, owner, index) { }
public Ref(MemberReference mr, TypeDef owner, int index) { MemberReference = mr; NewName = OldName = mr.Name; OldFullName = mr.FullName; Owner = owner; Index = index; }
public PropertyDef(PropertyDefinition propertyDefinition, TypeDef owner, int index) : base(propertyDefinition, owner, index) { }
public EventDef(EventDefinition eventDefinition, TypeDef owner, int index) : base(eventDefinition, owner, index) { }
public MethodDef(MethodDefinition methodDefinition, TypeDef owner, int index) : base(methodDefinition, owner, index) { genericParams = createGenericParamDefList(MethodDefinition.GenericParameters); }
public MethodRef(MethodReference methodReference, TypeDef owner, int index) : base(methodReference, owner, index) { if (methodReference.HasParameters) { for (int i = 0; i < methodReference.Parameters.Count; i++) { var param = methodReference.Parameters[i]; paramDefs.Add(new ParamDef(param, i)); } } }
public FieldDef(FieldDefinition fieldDefinition, TypeDef owner, int index) : base(fieldDefinition, owner, index) { }
public TypeInfo(TypeReference typeReference, TypeDef typeDef) { this.typeReference = typeReference; this.typeDef = typeDef; }
public InterfaceScopeInfo(TypeDef theClass, List<TypeDef> interfaces) { this.theClass = theClass; this.interfaces = interfaces; }
public void addClass(TypeDef cls) { classes[cls] = true; }
void fixClsTypeNames(TypeDef nesting, TypeDef nested) { int nestingCount = nesting == null ? 0 : nesting.GenericParams.Count; int arity = nested.GenericParams.Count - nestingCount; if (nested.gotNewName() && arity > 0) nested.NewName += "`" + arity; foreach (var nestedType in nested.NestedTypes) fixClsTypeNames(nested, nestedType); }