From fc8a05358a92cc3c77c5f1e30d536807ef0614fd Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Mon, 8 Apr 2019 13:49:55 +0300 Subject: were added scripting projects --- .../Scripting/Tango.Scripting/ReferenceAssembly.cs | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Software/Visual_Studio/Scripting/Tango.Scripting/ReferenceAssembly.cs (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting/ReferenceAssembly.cs') diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting/ReferenceAssembly.cs b/Software/Visual_Studio/Scripting/Tango.Scripting/ReferenceAssembly.cs new file mode 100644 index 000000000..c4e1925a2 --- /dev/null +++ b/Software/Visual_Studio/Scripting/Tango.Scripting/ReferenceAssembly.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Scripting +{ + public class ReferenceAssembly + { + public Assembly Assembly { get; set; } + + public String File + { + get { return Assembly.Location; } + } + + public String Name + { + get { return Path.GetFileNameWithoutExtension(File); } + } + + public ReferenceAssembly(Assembly assembly) + { + Assembly = assembly; + } + + public ReferenceAssembly(String file) + { + Assembly = Assembly.LoadFrom(file); + } + + public ReferenceAssembly(Type type) + { + Assembly = type.Assembly; + } + + public override string ToString() + { + return Assembly.ToString(); + } + } +} -- cgit v1.3.1