public void AddToScript(IScriptItem item) { if (item.GetType().IsGenericType&& item.GetType().GetGenericTypeDefinition() == typeof(Defconst <>)) { Script.Items.Insert(0, item); } else { Script.Items.Add(item); } }
public bool CanBeAppliedTo(IScriptItem scriptItem) { return(scriptItem.GetType().Name == "Defconst`1"); }