CN117648074B - Program processing method, system and medium for C# software development - Google Patents
Program processing method, system and medium for C# software development Download PDFInfo
- Publication number
- CN117648074B CN117648074B CN202410118535.2A CN202410118535A CN117648074B CN 117648074 B CN117648074 B CN 117648074B CN 202410118535 A CN202410118535 A CN 202410118535A CN 117648074 B CN117648074 B CN 117648074B
- Authority
- CN
- China
- Prior art keywords
- function
- module
- father
- information
- function module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 claims abstract description 33
- 230000006870 function Effects 0.000 claims description 297
- 230000004044 response Effects 0.000 claims description 79
- 238000012937 correction Methods 0.000 claims description 8
- 238000005516 engineering process Methods 0.000 claims description 7
- 238000011161 development Methods 0.000 abstract description 28
- 238000004458 analytical method Methods 0.000 abstract description 3
- 238000013461 design Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 6
- 238000010276 construction Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 1
- 238000010230 functional analysis Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/24—Object-oriented
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/315—Object-oriented languages
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/53—Decompilation; Disassembly
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/73—Program documentation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Library & Information Science (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the application provides a program processing method, a system and a medium for developing C# software, wherein the method comprises the following steps: determining a software program to be processed, wherein the software program to be processed comprises at least one father function module; acquiring the function mark of each father function module to obtain corresponding function mark information; sequentially determining sub-function modules corresponding to each father function module in the software program to be processed, and sequentially compiling each sub-function module to generate metadata; receiving a function call request to obtain request information, and calling a corresponding father function module according to the request information to obtain a target father function module; responding to the request information through the target father function module, and executing the target father function module; according to the application, the function analysis is carried out on the father function module through the function mark, and the corresponding selection execution target father function module is carried out according to the function call request in real time, so that the efficiency of programming is improved, and the development cost is reduced.
Description
Technical Field
The application relates to the technical field of C# software program processing, in particular to a program processing method, a system and a medium for C# software development.
Background
C# is a powerful and flexible programming language that is widely used in software development and application construction in a variety of fields. It provides rich functions and tools, and provides a high-efficiency, safe and reliable programming environment for developers.
At present, a C# is used as a development language of an upper computer on a plurality of medical equipment to develop the upper computer to realize man-machine interaction, namely, a user can interact with the machine only by clicking a screen, but at present, a plurality of upper computer modules are closely dependent, so that if one module is changed, the other modules are influenced, maintainability and expansibility are poor, and the serious problems of long design development period and serious coupling between the modules exist.
In the age of rapid development of contemporary information, the requirements are constantly changing, and it is conceivable that once the requirements are changed, the upper computer developed in the past cannot rapidly complete the development of the requirements due to high code coupling, so that on one hand, the market response rate is influenced, and on the other hand, the development cost is increased.
Currently, it is common practice to split a complex task (parent module) from top to bottom into simple child tasks (child modules). Each small module performs a certain function and establishes necessary links between the modules, and avoids excessive cross-calls. The whole function programming method is completed through the mutual cooperation of the modules. The development mode has higher requirements on designers, higher input cost in the early stage, easy dependence relationship among modules and high maintenance difficulty; in view of the above problems, an effective technical solution is currently needed.
Disclosure of Invention
The embodiment of the application aims to provide a program processing method, a system and a medium for developing C# software, which are used for carrying out functional analysis on a father function module through functional marks and carrying out corresponding selection execution on a target father function module according to a function call request in real time, so that the efficiency of programming is improved, and the development cost is reduced.
The embodiment of the application also provides a program processing method for developing the C# software, which comprises the following steps:
Determining a software program to be processed, wherein the software program to be processed comprises at least one father function module, and each father function module comprises at least one son function module;
Acquiring the function mark of each father function module to obtain corresponding function mark information;
sequentially determining sub-function modules corresponding to each father function module in the software program to be processed according to the function marking information, and sequentially compiling each sub-function module to generate metadata;
receiving a function call request to obtain request information, and calling a corresponding father function module according to the request information to obtain a target father function module;
and responding the request information through the target father function module to obtain a response result, and executing the target father function module according to the response result.
Optionally, in the method for processing a program for developing c# software according to the embodiment of the present application, after obtaining the function flag of each parent function module and obtaining the corresponding function flag information, the method further includes:
setting a function mark in a software program to be processed to generate parent module information;
Generating a dynamic link library file based on the parent module information;
compiling the dynamic link library file by utilizing the corresponding function mark, and sequentially determining sub-function modules corresponding to each father function module in the software program to be processed through a compiler;
and compiling each sub-functional module by utilizing a compiler in turn to generate metadata.
Optionally, in the method for processing a program for developing c# software according to the embodiment of the present application, setting a function flag in a software program to be processed to generate parent module information, including:
calling REGISTER TYPE functions on the current main program;
searching specific information of corresponding function marks by using the reflection function;
locating the marked parent function module according to the specific information of the function mark;
registering the marked father function module to generate father module information.
Optionally, in the method for processing a program for developing c# software according to the embodiment of the present application, generating the dynamic link library file based on parent module information specifically includes:
setting a function mark in a software program to be processed to generate parent module information;
Generating a corresponding dynamic link library file according to the parent module information;
Acquiring a plurality of sub-function modules and analyzing the relation among the sub-function modules;
And decoupling the dynamic link library file according to the relation between the sub-functional modules, and placing the dynamic link library file in a container.
Optionally, in the program processing method for developing c# software according to the embodiment of the present application, a response result is obtained by responding to the request information by the target parent functional module, and the target parent functional module is executed according to the response result, including:
acquiring a function call request to obtain request information, responding the request information through a target father function module, and calculating response time;
Comparing the response time with a set time threshold value, and calculating a response rate;
Judging whether the response rate meets the requirement;
if the request meets the requirement, generating a response result according to the request information, and executing the target father function module according to the response result;
if the request is not satisfied, generating correction information, and adjusting the response mode and the response parameter according to the correction information.
Optionally, in the program processing method for developing c# software according to the embodiment of the present application, a response result is obtained by responding to the request information by the target parent functional module, and the target parent functional module is executed according to the response result, including:
Finding PE sections of corresponding metadata by the name of the father function module, and consulting the metadata for information of corresponding classes;
Converting the MSLI into a quick native instruction through decompilation;
searching all functional modules under the current engineering directory by utilizing a reflection technology;
and returning an array for the user to select, and reading the name of the selected functional module after the user makes the selection.
In a second aspect, an embodiment of the present application provides a program processing system for developing c# software, the system including: the memory comprises a program for a program processing method for C# software development, and the program for the program processing method for C# software development realizes the following steps when being executed by the processor:
Determining a software program to be processed, wherein the software program to be processed comprises at least one father function module, and each father function module comprises at least one son function module;
Acquiring the function mark of each father function module to obtain corresponding function mark information;
sequentially determining sub-function modules corresponding to each father function module in the software program to be processed according to the function marking information, and sequentially compiling each sub-function module to generate metadata;
receiving a function call request to obtain request information, and calling a corresponding father function module according to the request information to obtain a target father function module;
and responding the request information through the target father function module to obtain a response result, and executing the target father function module according to the response result.
Optionally, in the program processing system for developing c# software according to the embodiment of the present application, after obtaining the function flag of each parent function module and obtaining the corresponding function flag information, the method further includes:
setting a function mark in a software program to be processed to generate parent module information;
Generating a dynamic link library file based on the parent module information;
compiling the dynamic link library file by utilizing the corresponding function mark, and sequentially determining sub-function modules corresponding to each father function module in the software program to be processed through a compiler;
and compiling each sub-functional module by utilizing a compiler in turn to generate metadata.
Optionally, in the program processing system for developing c# software according to the embodiment of the present application, setting a function flag in a software program to be processed to generate parent module information, including:
calling REGISTER TYPE functions on the current main program;
searching specific information of corresponding function marks by using the reflection function;
locating the marked parent function module according to the specific information of the function mark;
registering the marked father function module to generate father module information.
In a third aspect, an embodiment of the present application further provides a computer readable storage medium, where a program processing method program for c# software development is included, where the program processing method program for c# software development, when executed by a processor, implements the steps of the program processing method for c# software development as described in any one of the above.
As can be seen from the above, the program processing method, system and medium for developing c# software provided by the embodiments of the present application determine a software program to be processed, where the software program to be processed includes at least one parent functional module, and each parent functional module includes at least one child functional module; acquiring the function mark of each father function module to obtain corresponding function mark information; sequentially determining sub-function modules corresponding to each father function module in the software program to be processed according to the function marking information, and sequentially compiling each sub-function module to generate metadata; receiving a function call request to obtain request information, and calling a corresponding father function module according to the request information to obtain a target father function module; responding the request information through the target father function module to obtain a response result, and executing the target father function module according to the response result; according to the application, the function analysis is carried out on the father function module through the function mark, and the corresponding selection execution target father function module is carried out according to the function call request in real time, so that the efficiency of programming is improved, and the development cost is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a program processing method for developing C# software according to an embodiment of the present application;
FIG. 2 is a flowchart of a metadata generation method for a program processing method for C# software development according to an embodiment of the present application;
Fig. 3 is a flowchart of a parent module information generating method of a program processing method for c# software development according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that like reference numerals and letters refer to like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a flowchart of a program processing method for developing c# software according to some embodiments of the application. The program processing method for developing the C# software is used in the terminal equipment and comprises the following steps:
s101, determining a software program to be processed, wherein the software program to be processed comprises at least one father function module, and each father function module comprises at least one son function module;
S102, obtaining a function mark of each father function module to obtain corresponding function mark information;
S103, sequentially determining sub-function modules corresponding to each father function module in the software program to be processed according to the function marking information, and sequentially compiling each sub-function module to generate metadata;
s104, receiving a function call request to obtain request information, and calling a corresponding father function module according to the request information to obtain a target father function module;
s105, responding to the request information through the target father function module, obtaining a response result, and executing the target father function module according to the response result.
It should be noted that, the user designs the service function according to the development requirement, and does not need to strictly divide the implemented function, only needs to mark the developed function, then registers the developed function as a module, and then if the initialization construction function of the written module is to be called, the initialization variable to be accepted is transmitted, and the user only needs to search all module names and return in the form of an array when calling; then selectively loading the required modules; and finally, initializing the required module for use, so that a developer does not need to divide the module strictly and does not change a programming mode, but the modularized design between functions is realized, the development period is shortened, the development cost is saved, and the robustness of the code is enhanced.
Referring to fig. 2, fig. 2 is a flowchart of a metadata generation method for a program processing method for c# software development according to some embodiments of the application. According to the embodiment of the application, after obtaining the function mark of each father function module and obtaining the corresponding function mark information, the method further comprises the following steps:
s201, setting a function mark in a software program to be processed to generate parent module information;
s202, generating a dynamic link library file based on parent module information;
S203, compiling the dynamic link library file by utilizing the corresponding function mark, and sequentially determining sub-function modules corresponding to each father function module in the software program to be processed through a compiler;
s204, compiling each sub-functional module by utilizing a compiler in turn to generate metadata.
It should be noted that, father module information is generated according to the function mark, and a dynamic link library file is generated in real time according to the father module information, so that the dynamic link library file is accurately compiled in real time, and the compiling effect of the sub-function module is improved.
Referring to fig. 3, fig. 3 is a flowchart of a parent module information generating method of a program processing method for c# software development according to some embodiments of the application. According to the embodiment of the application, the function mark is set in the software program to be processed, and the parent module information is generated, which specifically comprises:
s301, calling REGISTER TYPE functions on the current main program;
S302, searching specific information of corresponding function marks by using a reflection function;
s303, positioning the marked father function module according to the specific information of the function mark;
S304, registering the marked father function module to generate father module information.
It should be noted that, the target father function module is determined by the function mark, and is called and executed in response to the function call request.
According to the embodiment of the invention, the dynamic link library file is generated based on the parent module information, and specifically comprises the following steps:
setting a function mark in a software program to be processed to generate parent module information;
Generating a corresponding dynamic link library file according to the parent module information;
Acquiring a plurality of sub-function modules and analyzing the relation among the sub-function modules;
And decoupling the dynamic link library file according to the relation between the sub-functional modules, and placing the dynamic link library file in a container.
The method is realized through a marking module, a registration module, a discovery module and a loading module, wherein the marking module marks the developed functions as modules; the registration module finds and injects the developed functions into the container in the form of modules by reflection and characteristics.
According to the embodiment of the invention, the target father function module responds to the request information to obtain a response result, and the target father function module is executed according to the response result, which specifically comprises:
acquiring a function call request to obtain request information, responding the request information through a target father function module, and calculating response time;
Comparing the response time with a set time threshold value, and calculating a response rate;
Judging whether the response rate meets the requirement;
if the request meets the requirement, generating a response result according to the request information, and executing the target father function module according to the response result;
if the request is not satisfied, generating correction information, and adjusting the response mode and the response parameter according to the correction information.
It should be noted that, the response rate is calculated by analyzing the response time of the target parent functional module, so that the effect of requesting the response is determined according to the response rate, and whether the target parent functional module is executed is determined according to the response effect, so as to improve the execution force of the target parent functional module.
According to the embodiment of the invention, the target father function module responds to the request information to obtain a response result, and the target father function module is executed according to the response result, which specifically comprises:
Finding PE sections of corresponding metadata by the name of the father function module, and consulting the metadata for information of corresponding classes;
Converting the MSLI into a quick native instruction through decompilation;
searching all functional modules under the current engineering directory by utilizing a reflection technology;
and returning an array for the user to select, and reading the name of the selected functional module after the user makes the selection.
It should be noted that, the discovery module searches all modules under the current engineering directory by using reflection technology, and returns an array for the developer to select; the loading module reads the name of the selected module, and the DLL (DYNAMIC LINK Library) file of the loaded module is a dynamic link Library file, and the DLL is extracted by searching the method and the attribute of the module; the initialization module is used for transmitting parameters which can be determined by a developer in the running process into the construction function, and initializing the method and the attribute of the obtained module so as to be convenient for calling; through the modularized design method, a developer can inject the self-developed function into the framework, can take out the function at any time in the subsequent use, and can delete and modify the function, so that the development period is shortened, the development cost is saved, and the robustness of the code is enhanced.
The scheme solves the problems of traditional modularized development and long development period; the problem of high input cost of traditional modularized development is solved; providing a framework for quickly realizing modularized development; the project is not required to be subdivided in the early stage, and the modular design can be completed; the stability and expansibility of the code can be improved.
According to the embodiment of the invention, a function call request is received to obtain request information, and a corresponding father function module is called according to the request information to obtain a target father function module, and the method further comprises the following steps:
acquiring a function call request to obtain request information, and calling a corresponding father function module according to the request information;
Acquiring the function information of the father function module, and calculating the matching information between the function information of the father function module and the request information to obtain the function matching degree;
judging whether the functional matching degree is larger than or equal to a set matching degree threshold value;
If the target parent function module is greater than or equal to the target parent function module, obtaining the target parent function module;
and if the result is smaller than the preset threshold, screening and adjusting the father function module.
In order to ensure the calling precision of the target parent function module, the matching degree between the request information and the functions of the parent function module is analyzed, so that the target parent function module is accurately called.
In a second aspect, an embodiment of the present application provides a program processing system for developing c# software, the system including: the memory and the processor, the memory includes the program of the program processing method for the C# software development, the program of the program processing method for the C# software development realizes the following steps when being executed by the processor:
Determining a software program to be processed, wherein the software program to be processed comprises at least one father function module, and each father function module comprises at least one son function module;
Acquiring the function mark of each father function module to obtain corresponding function mark information;
sequentially determining sub-function modules corresponding to each father function module in the software program to be processed according to the function marking information, and sequentially compiling each sub-function module to generate metadata;
receiving a function call request to obtain request information, and calling a corresponding father function module according to the request information to obtain a target father function module;
and responding the request information through the target father function module to obtain a response result, and executing the target father function module according to the response result.
It should be noted that, the user designs the service function according to the development requirement, and does not need to strictly divide the implemented function, only needs to mark the developed function, then registers the developed function as a module, and then if the initialization construction function of the written module is to be called, the initialization variable to be accepted is transmitted, and the user only needs to search all module names and return in the form of an array when calling; then selectively loading the required modules; and finally, initializing the required module for use, so that a developer does not need to divide the module strictly and does not change a programming mode, but the modularized design between functions is realized, the development period is shortened, the development cost is saved, and the robustness of the code is enhanced.
According to the embodiment of the invention, after obtaining the function mark of each father function module and obtaining the corresponding function mark information, the method further comprises the following steps:
setting a function mark in a software program to be processed to generate parent module information;
Generating a dynamic link library file based on the parent module information;
compiling the dynamic link library file by utilizing the corresponding function mark, and sequentially determining sub-function modules corresponding to each father function module in the software program to be processed through a compiler;
and compiling each sub-functional module by utilizing a compiler in turn to generate metadata.
It should be noted that, father module information is generated according to the function mark, and a dynamic link library file is generated in real time according to the father module information, so that the dynamic link library file is accurately compiled in real time, and the compiling effect of the sub-function module is improved.
According to the embodiment of the invention, the function mark is set in the software program to be processed, and the parent module information is generated, which specifically comprises:
calling REGISTER TYPE functions on the current main program;
searching specific information of corresponding function marks by using the reflection function;
locating the marked parent function module according to the specific information of the function mark;
registering the marked father function module to generate father module information.
It should be noted that, the target father function module is determined by the function mark, and is called and executed in response to the function call request.
According to the embodiment of the invention, the dynamic link library file is generated based on the parent module information, and specifically comprises the following steps:
setting a function mark in a software program to be processed to generate parent module information;
Generating a corresponding dynamic link library file according to the parent module information;
Acquiring a plurality of sub-function modules and analyzing the relation among the sub-function modules;
And decoupling the dynamic link library file according to the relation between the sub-functional modules, and placing the dynamic link library file in a container.
The method is realized through a marking module, a registration module, a discovery module and a loading module, wherein the marking module marks the developed functions as modules; the registration module finds and injects the developed functions into the container in the form of modules by reflection and characteristics.
According to the embodiment of the invention, the target father function module responds to the request information to obtain a response result, and the target father function module is executed according to the response result, which specifically comprises:
acquiring a function call request to obtain request information, responding the request information through a target father function module, and calculating response time;
Comparing the response time with a set time threshold value, and calculating a response rate;
Judging whether the response rate meets the requirement;
if the request meets the requirement, generating a response result according to the request information, and executing the target father function module according to the response result;
if the request is not satisfied, generating correction information, and adjusting the response mode and the response parameter according to the correction information.
It should be noted that, the response rate is calculated by analyzing the response time of the target parent functional module, so that the effect of requesting the response is determined according to the response rate, and whether the target parent functional module is executed is determined according to the response effect, so as to improve the execution force of the target parent functional module.
According to the embodiment of the invention, the target father function module responds to the request information to obtain a response result, and the target father function module is executed according to the response result, which specifically comprises:
Finding PE sections of corresponding metadata by the name of the father function module, and consulting the metadata for information of corresponding classes;
Converting the MSLI into a quick native instruction through decompilation;
searching all functional modules under the current engineering directory by utilizing a reflection technology;
and returning an array for the user to select, and reading the name of the selected functional module after the user makes the selection.
It should be noted that, the discovery module searches all modules under the current engineering directory by using reflection technology, and returns an array for the developer to select; the loading module reads the name of the selected module, and the DLL (DYNAMIC LINK Library) file of the loaded module is a dynamic link Library file, and the DLL is extracted by searching the method and the attribute of the module; the initialization module is used for transmitting parameters which can be determined by a developer in the running process into the construction function, and initializing the method and the attribute of the obtained module so as to be convenient for calling; through the modularized design method, a developer can inject the self-developed function into the framework, can take out the function at any time in the subsequent use, and can delete and modify the function, so that the development period is shortened, the development cost is saved, and the robustness of the code is enhanced.
The scheme solves the problems of traditional modularized development and long development period; the problem of high input cost of traditional modularized development is solved; providing a framework for quickly realizing modularized development; the project is not required to be subdivided in the early stage, and the modular design can be completed; the stability and expansibility of the code can be improved.
According to the embodiment of the invention, a function call request is received to obtain request information, and a corresponding father function module is called according to the request information to obtain a target father function module, and the method further comprises the following steps:
acquiring a function call request to obtain request information, and calling a corresponding father function module according to the request information;
Acquiring the function information of the father function module, and calculating the matching information between the function information of the father function module and the request information to obtain the function matching degree;
judging whether the functional matching degree is larger than or equal to a set matching degree threshold value;
If the target parent function module is greater than or equal to the target parent function module, obtaining the target parent function module;
and if the result is smaller than the preset threshold, screening and adjusting the father function module.
In order to ensure the calling precision of the target parent function module, the matching degree between the request information and the functions of the parent function module is analyzed, so that the target parent function module is accurately called.
A third aspect of the present invention provides a computer-readable storage medium having embodied therein a program processing method program for c# software development, which when executed by a processor, implements the steps of the program processing method for c# software development as any one of the above.
The application discloses a program processing method, a system and a medium for developing C# software, wherein the software program to be processed comprises at least one father function module, and each father function module comprises at least one son function module; acquiring the function mark of each father function module to obtain corresponding function mark information; sequentially determining sub-function modules corresponding to each father function module in the software program to be processed according to the function marking information, and sequentially compiling each sub-function module to generate metadata; receiving a function call request to obtain request information, and calling a corresponding father function module according to the request information to obtain a target father function module; responding the request information through the target father function module to obtain a response result, and executing the target father function module according to the response result; according to the application, the function analysis is carried out on the father function module through the function mark, and the corresponding selection execution target father function module is carried out according to the function call request in real time, so that the efficiency of programming is improved, and the development cost is reduced.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of units is only one logical function division, and there may be other divisions in actual implementation, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM, random Access Memory), a magnetic disk or optical disk, or the like, which can store program codes.
Or the above-described integrated units of the invention may be stored in a readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
Claims (5)
1. A program processing method for c# software development, comprising:
Determining a software program to be processed, wherein the software program to be processed comprises at least one father function module, and each father function module comprises at least one son function module;
Acquiring the function mark of each father function module to obtain corresponding function mark information;
sequentially determining sub-function modules corresponding to each father function module in the software program to be processed according to the function marking information, and sequentially compiling each sub-function module to generate metadata;
receiving a function call request to obtain request information, and calling a corresponding father function module according to the request information to obtain a target father function module;
Responding the request information through the target father function module to obtain a response result, and executing the target father function module according to the response result;
acquiring the function mark of each father function module, and after obtaining corresponding function mark information, further comprising:
setting a function mark in a software program to be processed to generate parent module information;
Generating a dynamic link library file based on the parent module information;
compiling the dynamic link library file by utilizing the corresponding function mark, and sequentially determining sub-function modules corresponding to each father function module in the software program to be processed through a compiler;
Compiling each sub-functional module by utilizing a compiler in turn to generate metadata;
setting a function mark in a software program to be processed to generate parent module information, wherein the method specifically comprises the following steps:
calling REGISTER TYPE functions on the current main program;
searching specific information of corresponding function marks by using the reflection function;
locating the marked parent function module according to the specific information of the function mark;
Registering the marked father function module to generate father module information;
responding the request information through the target father function module to obtain a response result, and executing the target father function module according to the response result, wherein the method specifically comprises the following steps:
Finding PE sections of corresponding metadata by the name of the father function module, and consulting the metadata for information of corresponding classes;
Converting the MSLI into a quick native instruction through decompilation;
searching all functional modules under the current engineering directory by utilizing a reflection technology;
and returning an array for the user to select, and reading the name of the selected functional module after the user makes the selection.
2. The program processing method for c# software development of claim 1, wherein generating the dynamic link library file based on parent module information, specifically comprises:
setting a function mark in a software program to be processed to generate parent module information;
Generating a corresponding dynamic link library file according to the parent module information;
Acquiring a plurality of sub-function modules and analyzing the relation among the sub-function modules;
And decoupling the dynamic link library file according to the relation between the sub-functional modules, and placing the dynamic link library file in a container.
3. The program processing method for c# software development of claim 2, wherein the response result is obtained by the target parent functional module responding to the request information, and the target parent functional module is executed according to the response result, specifically comprising:
acquiring a function call request to obtain request information, responding the request information through a target father function module, and calculating response time;
Comparing the response time with a set time threshold value, and calculating a response rate;
Judging whether the response rate meets the requirement;
if the request meets the requirement, generating a response result according to the request information, and executing the target father function module according to the response result;
if the request is not satisfied, generating correction information, and adjusting the response mode and the response parameter according to the correction information.
4. A program processing system for c# software development, the system comprising: the memory comprises a program for a program processing method for C# software development, and the program for the program processing method for C# software development realizes the following steps when being executed by the processor:
Determining a software program to be processed, wherein the software program to be processed comprises at least one father function module, and each father function module comprises at least one son function module;
Acquiring the function mark of each father function module to obtain corresponding function mark information;
sequentially determining sub-function modules corresponding to each father function module in the software program to be processed according to the function marking information, and sequentially compiling each sub-function module to generate metadata;
receiving a function call request to obtain request information, and calling a corresponding father function module according to the request information to obtain a target father function module;
Responding the request information through the target father function module to obtain a response result, and executing the target father function module according to the response result;
acquiring the function mark of each father function module, and after obtaining corresponding function mark information, further comprising:
setting a function mark in a software program to be processed to generate parent module information;
Generating a dynamic link library file based on the parent module information;
compiling the dynamic link library file by utilizing the corresponding function mark, and sequentially determining sub-function modules corresponding to each father function module in the software program to be processed through a compiler;
Compiling each sub-functional module by utilizing a compiler in turn to generate metadata;
setting a function mark in a software program to be processed to generate parent module information, wherein the method specifically comprises the following steps:
calling REGISTER TYPE functions on the current main program;
searching specific information of corresponding function marks by using the reflection function;
locating the marked parent function module according to the specific information of the function mark;
Registering the marked father function module to generate father module information;
responding the request information through the target father function module to obtain a response result, and executing the target father function module according to the response result, wherein the method specifically comprises the following steps:
Finding PE sections of corresponding metadata by the name of the father function module, and consulting the metadata for information of corresponding classes;
Converting the MSLI into a quick native instruction through decompilation;
searching all functional modules under the current engineering directory by utilizing a reflection technology;
and returning an array for the user to select, and reading the name of the selected functional module after the user makes the selection.
5. A computer-readable storage medium, characterized in that the computer-readable storage medium includes therein a program processing method program for c# software development, which when executed by a processor, implements the steps of the program processing method for c# software development as claimed in any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410118535.2A CN117648074B (en) | 2024-01-29 | 2024-01-29 | Program processing method, system and medium for C# software development |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410118535.2A CN117648074B (en) | 2024-01-29 | 2024-01-29 | Program processing method, system and medium for C# software development |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117648074A CN117648074A (en) | 2024-03-05 |
CN117648074B true CN117648074B (en) | 2024-04-19 |
Family
ID=90043712
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410118535.2A Active CN117648074B (en) | 2024-01-29 | 2024-01-29 | Program processing method, system and medium for C# software development |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117648074B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6704802B1 (en) * | 1996-03-27 | 2004-03-09 | Dell Usa, Lp | Method and system for communicating between independent software modules |
CN109614158A (en) * | 2017-09-30 | 2019-04-12 | 北京国双科技有限公司 | A kind of call method of plug-in unit, system, storage medium and processor |
CN109683957A (en) * | 2018-11-28 | 2019-04-26 | 厦门中控智慧信息技术有限公司 | The method and apparatus of Function Extension |
CN110955411A (en) * | 2019-10-25 | 2020-04-03 | 江西洪都航空工业集团有限责任公司 | Software integration interactive design method |
CN113296790A (en) * | 2020-02-21 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Method, apparatus and computer readable medium for generating application data package |
-
2024
- 2024-01-29 CN CN202410118535.2A patent/CN117648074B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6704802B1 (en) * | 1996-03-27 | 2004-03-09 | Dell Usa, Lp | Method and system for communicating between independent software modules |
CN109614158A (en) * | 2017-09-30 | 2019-04-12 | 北京国双科技有限公司 | A kind of call method of plug-in unit, system, storage medium and processor |
CN109683957A (en) * | 2018-11-28 | 2019-04-26 | 厦门中控智慧信息技术有限公司 | The method and apparatus of Function Extension |
CN110955411A (en) * | 2019-10-25 | 2020-04-03 | 江西洪都航空工业集团有限责任公司 | Software integration interactive design method |
CN113296790A (en) * | 2020-02-21 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Method, apparatus and computer readable medium for generating application data package |
Also Published As
Publication number | Publication date |
---|---|
CN117648074A (en) | 2024-03-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Krüger et al. | Where is my feature and what is it about? a case study on recovering feature facets | |
US9652209B2 (en) | Static analysis and reconstruction of deep link handling in compiled applications | |
CN107704382A (en) | Towards Python function call path generating method and system | |
US20170161177A1 (en) | Techniques to identify idiomatic code in a code base | |
CN111611441B (en) | Heterogeneous data processing method and device and computer equipment | |
CN111506314B (en) | Project development method, device, server and medium | |
CN113018870B (en) | Data processing method, device and computer readable storage medium | |
CN114217886A (en) | Function calling method, computing device and storage medium | |
CN111752841B (en) | Single-test simulation method, single-test simulation device, single-test simulation equipment and computer-readable storage medium | |
CN107562429A (en) | A kind of android system static division method based on compiling rule | |
CN115599359A (en) | Code generation method, device, equipment and medium | |
CN116266117A (en) | Model conversion method, computer program product, storage medium, and electronic device | |
CN117648074B (en) | Program processing method, system and medium for C# software development | |
CN115794214B (en) | Application module metadata management method, device, storage medium and apparatus | |
CN117827218A (en) | Development method, device and electronic equipment for supporting multiple languages by low-code application | |
CN109446454A (en) | A kind of high performance PHPWeb system framework of lightweight and working method | |
CN107526966B (en) | Composite stain propagation tracking method for Android platform | |
CN111488286A (en) | Method and device for independently developing Android module | |
CN110032407A (en) | Promote the method and device and electronic equipment of CPU parallel performance | |
CN115543324A (en) | Method, device, equipment and medium for generating interactive interface | |
US11144290B2 (en) | Method and apparatus for enabling autonomous acceleration of dataflow AI applications | |
CN112667202A (en) | Software design method and device combining MDA (model-driven architecture) and BPMN (Business Process management) | |
CN114489653A (en) | Compiler-based data processing method, compiler-based data processing device and readable storage medium | |
CN112596734A (en) | Static library generation method and device | |
CN114416104B (en) | Structured data file processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |