2 using System.Collections.Generic;
5 using System.Reflection;
6 using System.Collections.ObjectModel;
7 using SiliconStudio.Presentation;
9 namespace SiliconStudio.
Paradox.DebugTools.ViewModels
15 private readonly ScriptAssembly scriptAssembly;
19 if (scriptAssembly == null)
20 throw new ArgumentNullException(
"scriptAssembly");
23 throw new ArgumentNullException(
"parent");
26 this.scriptAssembly = scriptAssembly;
35 if (scriptAssembly.Url == null)
36 return "<anonymous assembly>";
37 return scriptAssembly.Url.TrimStart(
'/');
41 public string Assembly
45 if (scriptAssembly.Assembly == null)
47 return scriptAssembly.Assembly.ToString();
53 internal void UpdateScripts()
55 Types = from script in scriptAssembly.Scripts group script by script.TypeName into g select
new ScriptTypeViewModel(g.Key, g,
this);
56 OnPropertyChanged<ScriptAssemblyViewModel>(n => n.Types);