static public VariableInstance GetRelativeVariableInstanceByPath(this VariableInstance item, string full_path) { return(item.GetVariable().GetRelativeVariableByPath(full_path) .IfNotNull(v => v.CreateInstance(item.GetTargetInstance()))); }
static public ActionInstance GetRelativeActionInstanceByPath(this VariableInstance item, string full_path, params object[] arguments) { return(item.GetRelativeActionInstanceByPath(full_path, (IEnumerable <Type>)arguments)); }
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 GetRelativeActionInstanceByPathAndComponent(this VariableInstance item, string path, string component, params object[] arguments) { return(item.GetRelativeActionInstanceByPathAndComponent(path, component, (IEnumerable <Type>)arguments)); }
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, params Type[] parameter_types) { return(item.GetRelativeFunctionInstanceByPath(full_path, (IEnumerable <Type>)parameter_types)); }
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()))); }
static public FunctionInstance GetRelativeFunctionInstanceByPathAndComponent(this VariableInstance item, string path, string component, params Type[] parameter_types) { return(item.GetRelativeFunctionInstanceByPathAndComponent(path, component, (IEnumerable <Type>)parameter_types)); }
static public T GetContents <T>(this VariableInstance item) { return(item.GetContents().Convert <T>()); }