C#中的VB Mid()函数 [英] VB Mid() funtion in C#

查看:334
本文介绍了C#中的VB Mid()函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C#中的函数是否有可能像VB中的内置

Mid(str,z,z)一样使用?

Is there by chance a function in C# that can be used just like the built-in
Mid(str,z,z) in VB?

推荐答案

我认为Microsoft.VisualBasic.Interaction.Mid(,);应该工作。

Tom J(Darth)" < TJ **** @ airmail.net>在消息中写道

新闻:#H ************* @ TK2MSFTNGP11.phx.gbl ...
I think Microsoft.VisualBasic.Interaction.Mid( , ); should work.
"Tom J (Darth)" <tj****@airmail.net> wrote in message
news:#H*************@TK2MSFTNGP11.phx.gbl...
是偶然的C#中的函数可以像VB中的
内置Mid(str,z,z)一样使用吗?
Is there by chance a function in C# that can be used just like the built-in Mid(str,z,z) in VB?



C#字符串类中有等价的方法。无法记住

究竟是什么方法名称,但它就在那里。

Tom J(Darth)写道:
There are equivalent method in C# string class. Couldn''t remember
exactly what is the method name, but it is there.
Tom J (Darth) wrote:
C#中的函数是否可以像VB中的内置(str,z,z)一样使用?
Is there by chance a function in C# that can be used just like the built-in
Mid(str,z,z) in VB?



" Tom J \(Darth \)" < TJ **** @ airmail.net>写在

新闻:#H ************* @ TK2MSFTNGP11.phx.gbl:
"Tom J \(Darth\)" <tj****@airmail.net> wrote in
news:#H*************@TK2MSFTNGP11.phx.gbl:
是否偶然C#中的一个函数可以像VB中的内置Mid(str,z,z)一样使用吗?
Is there by chance a function in C# that can be used just like
the built-in Mid(str,z,z) in VB?




System.String.Substring

克里斯。

-------------

CR Timmons Consulting,Inc。
< a rel =nofollowhref =http://www.crtimmonsinc.com/target =_ blank> http://www.crtimmonsinc.com/


这篇关于C#中的VB Mid()函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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