static public IEnumerable <VariableInstance> GetAllVariableInstanceElements(this VariableInstance item) { return(item.GetVariable().GetAllVariableElements(item.GetTarget()) .Convert(v => v.CreateInstance(item.GetTargetInstance()))); }
static public VariableInstance GetVariableInstanceElement(this VariableInstance item, int index) { return(item.GetVariable().GetVariableElement(index) .IfNotNull(v => v.CreateInstance(item.GetTargetInstance()))); }
static public IEnumerable <VariableInstance> GetVariableInstanceElements(this VariableInstance item, int index, int count) { return(item.GetVariable().GetVariableElements(index, count) .Convert(v => v.CreateInstance(item.GetTargetInstance()))); }
static public VariableInstance GetRelativeVariableInstanceByPath(this VariableInstance item, string full_path) { return(item.GetVariable().GetRelativeVariableByPath(full_path) .IfNotNull(v => v.CreateInstance(item.GetTargetInstance()))); }
static public VariableInstance GetRelativeVariableInstanceByPathAndComponent(this VariableInstance item, string path, string component) { return(item.GetVariable().GetRelativeVariableByPathAndComponent(path, component) .IfNotNull(v => v.CreateInstance(item.GetTargetInstance()))); }
static public ActionInstance GetRelativeActionInstanceByPath(this VariableInstance item, string full_path, IEnumerable <object> arguments) { return(item.GetVariable().GetRelativeActionByPath(full_path, arguments) .IfNotNull(a => a.CreateInstance(item.GetTargetInstance()))); }
static public ActionInstance GetRelativeActionInstanceByPathAndComponent(this VariableInstance item, string path, string component, IEnumerable <object> arguments) { return(item.GetVariable().GetRelativeActionByPathAndComponent(path, component, arguments) .IfNotNull(a => a.CreateInstance(item.GetTargetInstance()))); }
static public FunctionInstance GetRelativeFunctionInstanceByPath(this VariableInstance item, string full_path, IEnumerable <Type> parameter_types) { return(item.GetVariable().GetRelativeFunctionByPath(full_path, parameter_types) .IfNotNull(f => f.CreateInstance(item.GetTargetInstance()))); }