namespace StockSharp.Algo.Compilation
{
using System.Collections.Generic;
using System.Linq;
using Ecng.Compilation;
///
/// Extension class.
///
public static class CodeExtensions
{
private static readonly IEnumerable _defaultReferences = new[]
{
"mscorlib",
"netstandard",
"System",
"System.Core",
"System.Configuration",
"System.Xml",
"System.Runtime",
"System.Linq",
"System.Private.CoreLib",
"System.ObjectModel",
"System.ComponentModel.Primitives",
"System.ComponentModel.TypeConverter",
"System.ComponentModel.Annotations",
"System.Collections",
"System.Drawing.Primitives",
"Ecng.Common",
"Ecng.Collections",
"Ecng.ComponentModel",
"Ecng.Configuration",
"Ecng.Localization",
"Ecng.Serialization",
"Ecng.Reflection",
"Ecng.Drawing",
"StockSharp.Algo",
"StockSharp.Messages",
"StockSharp.BusinessEntities",
"StockSharp.Logging",
"StockSharp.Localization",
"StockSharp.Diagram.Core",
"StockSharp.Charting.Interfaces",
"StockSharp.Alerts.Interfaces",
};
///
/// Default references.
///
public static IEnumerable DefaultReferences
=> _defaultReferences
.Select(r => new CodeReference { Location = $"{r}.dll" })
.ToArray();
}
}