private MethodModel[] GenerateMethodModels(ITypeSymbol typeSymbol) { var classInformation = new ClassInformation(typeSymbol); List <IMethodSymbol> methods = classInformation.GetMethods().ToList(); MethodModel[] methodModels = new MethodModel[methods.Count]; for (int i = 0; i < methods.Count; i++) { methodModels[i] = new MethodModel() { Name = methods[i].Name, Parameters = GeneratePrameterModels(methods[i]), Visibility = GetAccessibilityName(methods[i].DeclaredAccessibility), Type = TypeName(methods[i].ReturnType) }; } return(methodModels); }