帮忙看看,一个类的问题 csDataFormat csDF=new csDataFormat("InventoryID");string s=csDF.FormatString; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 类csDataFormat有个参数("InventoryID")有个属性.FormatString我要在不声明新对象的情况下对她操作。csDataFormat csDF=new csDataFormat("InventoryID");string s=csDF.FormatString;就是不要你写的第一行,直接string s = csDataFormat("InventoryID").FormatString谢谢了。 把FormatString声明成静态的就可以了 是不是 public static string FormatString string s = csDataFormat("InventoryID").FieldName出错误了。 呵呵,回答了,类方法,和java一样 Class a{public static string FormatString static a() { FormatString="dfa"; }}string s = csDataFormat.FormatString你要用静态构造函数,就不能带参数。 急,C#对多个sheet的操作 SLDPRT扩展名怎么设置MIME映射 A窗体如何调用B窗体里面的方法? Installshield打包问题 求高人帮忙!! vc# 如何判断按钮控件被点击??? C#支持变长数组吗 C#管理系统sql数据计算 C# 编写的com(按照C#高级编程中的方法写了所谓的连接点) c++如何将函数与事件关联起来 ?? 高手请进.......... 关于SQL 的复合查询问题 应该怎么解决? 如何用C#向计算机的COM口发字符串? c#中如何把access返回的值转化成int型!!请高手指教!! .net的是怎样调试的?
我要在不声明新对象的情况下对她操作。
csDataFormat csDF=new csDataFormat("InventoryID");
string s=csDF.FormatString;
就是不要你写的第一行,
直接
string s = csDataFormat("InventoryID").FormatString
谢谢了。
出错误了。
{
public static string FormatString static a()
{
FormatString="dfa";
}}
string s = csDataFormat.FormatString
你要用静态构造函数,就不能带参数。