【发布时间】:2011-10-19 21:52:16
【问题描述】:
我正在尝试将一些 vb.net 转换为 C#,但我不断收到错误。目前,我收到以下错误:
The name 'Strings' does not exist in the current context
问题行是:
strUser = Strings.LCase(Strings.Trim(strUserInitials[strUserInitials.GetUpperBound(0)])).ToString();
有人知道为什么会这样吗?
我设置了以下命名空间:
using System;
using System.Web;
using System.Web.Services;
using System.Web.Script;
using System.Web.Script.Services;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
我正在开发一个网络服务(asmx 文件)。
【问题讨论】:
标签: c# .net .net-3.5 asmx vb.net-to-c#