İngilizce dilinde oku

Aracılığıyla paylaş


Derleyici Uyarısı (düzey 1) CS1581

XML açıklama cref özniteliğinde geçersiz dönüş türü

Bir yönteme başvurmaya çalışırken, derleyici geçersiz bir dönüş türü nedeniyle bir hata algılamıştı.

Örnek

Aşağıdaki örnek CS1581 oluşturur:

C#
// CS1581.cs  
// compile with: /W:1 /doc:x.xml  
  
/// <summary>help text</summary>  
public class MyClass  
{  
    /// <summary>help text</summary>  
    public static void Main()  
    {  
    }  
  
    /// <summary>help text</summary>  
    public static explicit operator int(MyClass f)  
    {  
        return 0;  
    }  
}  
  
/// <seealso cref="MyClass.explicit operator intt(MyClass)"/>  // CS1581  
// try the following line instead  
// /// <seealso cref="MyClass.explicit operator int(MyClass)"/>  
public class MyClass2  
{  
}