static public bool MoveElementInVariableInstance(this VariableInstance item, int src_index, int dst_index) { return(item.GetVariable().MoveElementInVariable(item.GetTarget(), src_index, dst_index)); }
static public bool InsertElementIntoVariableInstanceAt(this VariableInstance item, int index) { return(item.GetVariable().InsertElementIntoVariableAt(item.GetTarget(), index)); }
static public bool RemoveElementInVariableInstanceAt(this VariableInstance item, int index) { return(item.GetVariable().RemoveElementInVariableAt(item.GetTarget(), index)); }
static public bool AddElementToVariableInstance(this VariableInstance item, object value) { return(item.GetVariable().AddElementToVariable(item.GetTarget(), value)); }
static public bool AddElementToVariableInstance(this VariableInstance item) { return(item.GetVariable().AddElementToVariable(item.GetTarget())); }
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 IEnumerable <VariableInstance> GetAllVariableInstanceElements(this VariableInstance item) { return(item.GetVariable().GetAllVariableElements(item.GetTarget()) .Convert(v => v.CreateInstance(item.GetTargetInstance()))); }
static public int GetVariableInstanceNumberElements(this VariableInstance item) { return(item.GetVariable().GetVariableNumberElements(item.GetTarget())); }
static public VariableInstance GetVariableInstanceElement(this VariableInstance item, int index) { return(item.GetVariable().GetVariableElement(index) .IfNotNull(v => v.CreateInstance(item.GetTargetInstance()))); }
static public ValueChangeResult EnsureContents(this VariableInstance item, Type type) { return(item.GetVariable().EnsureContents(item.GetTarget(), type)); }
static public ValueChangeResult ClearContents(this VariableInstance item) { return(item.GetVariable().ClearContents(item.GetTarget())); }
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()))); }