C#程序控制流程 [英] C# Program Control Flow

查看:59
本文介绍了C#程序控制流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我是C#的新手。   我是一名SQL DB程序员。

I am new to C#.    I am an SQL DB programmer.

我们有一个用C#编写的数据库应用程序,没有前端。 它只是后端应用程序。

We have a DB application written in C#, there is no front-end.  Its just backend application.

我试图通过在代码中的各个点设置断点来通过调试来理解该应用程序的程序流程。  我想跟踪应用程序的起点在哪里,它的端点在哪里。  而且,节目
如何控制从开始到结束。 我想知道它有多少个n层应用程序 等等。

Am trying to understand the program flow of this application through debugging by setting breakpoints at various points in the code.   I want to trace where is the starting point of the application, where is its endpoint.   And, how is the program control flowing from start to end.  I want to know how many n-tiered application it is  etc.

这个特殊的应用程序不是多线程的。

This particular application is NOT multithreaded one.

了解这些要求的方法最好是什么?

What best can be the approach in knowing these requirements?

谢谢

推荐答案

每个应用程序都有一个由启动对象定义的入口点。它在应用程序选项卡中的项目属性中确定 - 启动对象。它可以是任何具有string []参数的静态方法的类。终点是此方法的最后一个命令。
但是当没有其他后台主题时就是如此。 

Each application has entry point which is defined by startup object. It is determined in project properties in application tab - startup object. It could be any class which has static method with string[] parameters. End point is last comand in this method. But it is true when there is not another background thread. 

层与层之间存在差异。要查看调用方法,可以在Visual Studio Enterprise中使用Codemap。这是一个很好的工具来显示调用方法的位置,你可以看到调用不同的程序集等...

There is difference between layer and tier. To see calling methods you can use Codemap in Visual Studio Enterprise. It is nice tool to show where method is called from, you can see call different assemblies, etc...


这篇关于C#程序控制流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆