public bool  PropertyAllPower(string cUserName,stirngcDataPowerType,system.data.common.dbcommand optional)
{
   string cClass="";
string cvarname="";
string value=DAL.Var.Var.Create.getValue(cClass, cVarName, cmd);
if(tostr(value_==""|| tostr(value)="1")
{
return ture;
}
else if(tostr(value)="0")
{
return false;
}
set(bool value)
string cclass="";
string cvarname="";
string cValue= IIf(value, "1", "0")}

解决方案 »

  1.   


    Public bool AllPower(String cUserName ,String cDataPowerType,Sqlcommand cmd )
    {
     String  cClass = "数据权限";
    String cVarName =cUserName +"_"+cDataPowerType;
    String Value = DAL.Var.Var.Create.getValue(cClass, cVarName, cmd);
      If (tostr(Value) == "" || tostr(Value) == "1" )
                        Return True;
                Return False;
      }
    }
                   
      

  2.   

    其实我那段代码 是vb.net 一个带参数的属性  只是我想改写成 c# 代码,我也知道 c#属性是不能参数的,有什么好的把办 能实现vb.net 同样的功能
      

  3.   

    http://www.developerfusion.com/tools/convert/vb-to-csharp/