예제 #1
0
 static public IEnumerable <VariableInstance> GetAllVariableInstanceElements(this VariableInstance item)
 {
     return(item.GetVariable().GetAllVariableElements(item.GetTarget())
            .Convert(v => v.CreateInstance(item.GetTargetInstance())));
 }
예제 #2
0
 static public VariableInstance GetVariableInstanceElement(this VariableInstance item, int index)
 {
     return(item.GetVariable().GetVariableElement(index)
            .IfNotNull(v => v.CreateInstance(item.GetTargetInstance())));
 }
예제 #3
0
 static public IEnumerable <VariableInstance> GetVariableInstanceElements(this VariableInstance item, int index, int count)
 {
     return(item.GetVariable().GetVariableElements(index, count)
            .Convert(v => v.CreateInstance(item.GetTargetInstance())));
 }
예제 #4
0
 static public VariableInstance GetRelativeVariableInstanceByPath(this VariableInstance item, string full_path)
 {
     return(item.GetVariable().GetRelativeVariableByPath(full_path)
            .IfNotNull(v => v.CreateInstance(item.GetTargetInstance())));
 }
예제 #5
0
 static public VariableInstance GetRelativeVariableInstanceByPathAndComponent(this VariableInstance item, string path, string component)
 {
     return(item.GetVariable().GetRelativeVariableByPathAndComponent(path, component)
            .IfNotNull(v => v.CreateInstance(item.GetTargetInstance())));
 }
예제 #6
0
 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())));
 }
예제 #7
0
 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())));
 }
예제 #8
0
 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())));
 }