void CreateArguments() { int count = Constructor == null ? 0 : Constructor.MethodSig.GetParamCount(); while (ConstructorArguments.Count > count) { ConstructorArguments.RemoveAt(ConstructorArguments.Count - 1); } while (ConstructorArguments.Count < count) { var type = Constructor.MethodSig.Params[ConstructorArguments.Count]; ConstructorArguments.Add(new CAArgumentVM(ownerModule, CreateCAArgument(type), new TypeSigCreatorOptions(ownerModule, language), type)); } }