編譯器錯誤 CS1519
更新:2007 年 11 月
錯誤訊息
類別、結構或介面成員宣告中無效的語彙基元 'token'
任何的類別、結構或介面成員宣告中,如果在型別之前包含無效的修飾詞,都將產生此錯誤。若要更正這個錯誤,請移除無效的修飾詞。
下列範例會產生 CS1519:
// CS1519.cs
public class IMyInterface
{
checked void f4(); // CS1519
// Remove "checked" from the line above.
lock void f5(); // CS1519
// Remove "lock" from the line above
namespace; // CS1519
// The line above should be removed entirely.
int i; // OK
}