static public VariableInstance GetVariableInstanceByComponent(this TargetInstance item, string component) { return(item.GetTargetType().GetVariableByComponent(component) .IfNotNull(v => v.CreateInstance(item))); }
static public VariableInstance GetVariableInstanceByPath(this TargetInstance item, string full_path) { return(item.GetTargetType().GetVariableByPath(full_path) .IfNotNull(v => v.CreateInstance(item))); }
static public ActionInstance GetActionInstanceByPath(this TargetInstance item, string full_path, IEnumerable <object> arguments) { return(item.GetTargetType().GetActionByPath(full_path, arguments) .IfNotNull(a => a.CreateInstance(item))); }
public Type GetTargetType() { return(target_instance.GetTargetType()); }
static public ActionInstance GetActionInstanceByPathAndComponent(this TargetInstance item, string path, string component, IEnumerable <object> arguments) { return(item.GetTargetType().GetActionByPathAndComponent(path, component, arguments) .IfNotNull(a => a.CreateInstance(item))); }