Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/322.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 不包含'';没有扩展方法_C# - Fatal编程技术网

C# 不包含'';没有扩展方法

C# 不包含'';没有扩展方法,c#,C#,我得到了写在变量标题中的错误消息 using webFRIEDneu._Grab; namespace webFRIED._Grab { public partial class Grabserie1 : System.Web.UI.Page { public string GetIdent(int Zahl, string Typ) { string s = string.Empty; if

我得到了写在变量标题中的错误消息

using webFRIEDneu._Grab;

namespace webFRIED._Grab
{

    public partial class Grabserie1 : System.Web.UI.Page
    {

        public string GetIdent(int Zahl, string Typ)
        {
            string s = string.Empty;

            if (Typ == "Römisch")
                s = ArabicToRoman.Convert(Zahl);

            if (Typ == "Arabisch")
                s = Zahl.ToString();

            return s;
        }//Kovertierung in Arabisch/Römisch/Alphabet

        public void Page_Load(object sender, System.EventArgs e)
        {

        }//Page_Load

        public void btn_Speichern_Click(object sender, System.EventArgs e)
        {
            int Ident1Von, Ident1Bis, Ident2Von, Ident2Bis, Ident3Von, Ident3Bis;
            string Trennzeichen;

            Ident1Von = int.Parse(this.tb_Grabident1_von.Text.ToString());
            Ident1Bis = int.Parse(this.tb_Grabident1_bis.Text.ToString());
            Ident2Von = int.Parse(this.tb_Grabident2_von.Text);
            Ident2Bis = int.Parse(this.tb_Grabident2_bis.Text);
            Ident3Von = int.Parse(this.tb_Grabident3_von.Text);
            Ident3Bis = int.Parse(this.tb_Grabident3_bis.Text);
            Trennzeichen = this.tb_Trennzeichen.Text;

            for (int i1von = Ident1Von; i1von <= Ident1Bis; i1von++)
            {
                for (int i2von = Ident2Von; i2von <= Ident2Bis; i2von++)
                {
                    for (int i3von = Ident3Von; i3von <= Ident3Bis; i3von++)
                    {
                        //lb_Ausgabe.Items.Add(string.Format("{0} {1} {2} {1} {3}", GetIdent(i1von, this.ddl_Grabident1.Text), Trennzeichen, GetIdent(i2von, this.ddl_Grabident2.Text), GetIdent(i3von, this.ddl_Grabident3.Text)));
                    }
                }
            }
        }//btn_Speichern


        protected void btn_Hilfe_Click(object sender, System.EventArgs e)
        {
        }//btn_Help


        protected void btn_Beenden_Click(object sender, System.EventArgs e)
        {
        }//btn_Beenden


        /********************************************************************************
        *                                                                               *
        *                  Private Methoden                                             *
        *                                                                               *
        ********************************************************************************/


}
}
使用webFRIEDneu.\u抓取;
命名空间webFRIED.\u抓取
{
公共部分类Grabserie1:System.Web.UI.Page
{
公共字符串GetIdent(int-Zahl,字符串类型)
{
string s=string.Empty;
如果(典型==“Römish”)
s=阿拉伯数字转换(Zahl);
如果(典型==“阿拉伯式”)
s=Zahl.ToString();
返回s;
}//阿拉比语/罗密斯语/字母表中的科维特朗语
公共无效页面加载(对象发送方,System.EventArgs e)
{
}//页面加载
public void btn_Speichern_Click(对象发送者,System.EventArgs e)
{
int Ident1Von,Ident1Bis,Ident2Von,Ident2Bis,Ident3Von,Ident3Bis;
弦乐;
Ident1Von=int.Parse(this.tb_Grabident1_von.Text.ToString());
Ident1Bis=int.Parse(this.tb_Grabident1_bis.Text.ToString());
Ident2Von=int.Parse(this.tb_Grabident2_von.Text);
Ident2Bis=int.Parse(this.tb_Grabident2_bis.Text);
Ident3Von=int.Parse(this.tb_Grabident3_von.Text);
Ident3Bis=int.Parse(this.tb_-Grabident3_-bis.Text);
Trennzeichen=this.tb_Trennzeichen.Text;

对于(int i1von=Ident1Von;i1von)在POST中添加实际错误消息和堆栈跟踪,为什么对
Ident1Von
Ident1Bis
ToString()