在一个块内添加一个字符串 [英] add a string within a block

查看:72
本文介绍了在一个块内添加一个字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我有这样的代码

公共无效Do()

{

}

int x = 0;

int x=0;

public void Create()

public void Create()

{

}

但是,我想在每种方法的开头添加一个注释,就像这样

How ever, I would like to add at the beginning of each method a comment to be just like this

公共无效Do()

{

//开始

//结束

}

int x = 0;

int x=0;

public void Create()

public void Create()

{

//开始

//结束

}

所有这些操作都是在richtextbox中完成的,我只想复制我的项目代码,并进行这种操作以表示每个方法,有没有办法做到这一点?

all this manipulation is done in richtextbox, I just want to copy my projects code, and make such manipulation, to commeny each method, is there a way to do this?

推荐答案

嗨ayman-at1000,

Hi ayman-at1000,

谢谢您在这里发布.

根据您的描述,是否要在方法{}中添加所有代码的注释?您如何将代码复制到richtextbox?从.txt文件读取?还是在运行时从当前项目中复制代码?

According to your description, do you want to add comments of all the code in {} of method? How do you copy the code to richtextbox? Read from the .txt file? Or copy code from the current project at runtime?

更多信息会有所帮助.

我们正在等待您的更新.

We are waiting for your update.

最好的问候,

温迪


这篇关于在一个块内添加一个字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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