Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/302.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#忍者脚本无效toke'=';在类结构中,成员声明_C# - Fatal编程技术网

c#忍者脚本无效toke'=';在类结构中,成员声明

c#忍者脚本无效toke'=';在类结构中,成员声明,c#,C#,cs1519错误代码。我在《忍者》中使用了c#,我有以下错误 [Display(Name = "Buy", GroupName = "01. Profile", Order = 20)] public System.Windows.Media.Brush BuyLadderBrush// here it showing class member declaratione expected { get; set; } = Brushes.LightGreen ; //in

cs1519错误代码。我在《忍者》中使用了c#,我有以下错误

    [Display(Name = "Buy", GroupName = "01. Profile", Order = 20)]
    public System.Windows.Media.Brush BuyLadderBrush// here it showing class member declaratione expected
    { get; set; } =  Brushes.LightGreen ; //in this line am getting invalid token ';' and '=' eror
    [Browsable(false)]
    public string BuyLadderBrushSerializable
二,


你的项目目标是哪一个C#和.NET版本?4.5.NET我在eby上使用这个ninjatrader,我需要在ninjascript上工作。
    protected void DisposeUnmanagedGraphics()
    {
        BuyLadderBrushDx?.Dispose(); BuyLadderBrushDx = null;//all this case expression expected  error 
        SellLadderBrushDx?.Dispose(); SellLadderBrushDx = null;
        PositiveDeltaBrushDx?.Dispose(); PositiveDeltaBrushDx = null;
        NegativeDeltaBrushDx?.Dispose(); NegativeDeltaBrushDx = null;
        ChartBackgroundBrushDx?.Dispose(); ChartBackgroundBrushDx = null;
    }