我目前正在使用Visual在Visual 2015中工作,我有一个类,它接受分隔字符串,可以在字符串中的位置提取/替换数据,类似于交错数组,深度可达三层。已经生成了在类中读取和写入数据的基类。为了空间和权宜之计,我在帮助我的问题时加入了经过修改的代码作为参考。如果需要更多的数据,我可以提供整个类。例如,如果我有以下变量:
Dim DelimitedString As String = "Foo,4,7,1-2,6区,4,2,8-7,5,7飞,4,8 ,8-7,5,7“
我收到的问题是:私人成员:NameNo_of_days Getit() -to enter the data membersCompute() -To calculate and return the total charges as charges_day * No_of_dayspublic class hotel{
pr