Ejemplo n.º 1
0
 static public VariableInstance GetRelativeVariableInstanceByPath(this VariableInstance item, string full_path)
 {
     return(item.GetVariable().GetRelativeVariableByPath(full_path)
            .IfNotNull(v => v.CreateInstance(item.GetTargetInstance())));
 }
Ejemplo n.º 2
0
 static public ActionInstance GetRelativeActionInstanceByPath(this VariableInstance item, string full_path, params object[] arguments)
 {
     return(item.GetRelativeActionInstanceByPath(full_path, (IEnumerable <Type>)arguments));
 }
Ejemplo n.º 3
0
 static public VariableInstance GetRelativeVariableInstanceByPathAndComponent(this VariableInstance item, string path, string component)
 {
     return(item.GetVariable().GetRelativeVariableByPathAndComponent(path, component)
            .IfNotNull(v => v.CreateInstance(item.GetTargetInstance())));
 }
Ejemplo n.º 4
0
 static public ActionInstance GetRelativeActionInstanceByPathAndComponent(this VariableInstance item, string path, string component, params object[] arguments)
 {
     return(item.GetRelativeActionInstanceByPathAndComponent(path, component, (IEnumerable <Type>)arguments));
 }
Ejemplo n.º 5
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())));
 }
Ejemplo n.º 6
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())));
 }
Ejemplo n.º 7
0
 static public FunctionInstance GetRelativeFunctionInstanceByPath(this VariableInstance item, string full_path, params Type[] parameter_types)
 {
     return(item.GetRelativeFunctionInstanceByPath(full_path, (IEnumerable <Type>)parameter_types));
 }
Ejemplo n.º 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())));
 }
Ejemplo n.º 9
0
 static public FunctionInstance GetRelativeFunctionInstanceByPathAndComponent(this VariableInstance item, string path, string component, params Type[] parameter_types)
 {
     return(item.GetRelativeFunctionInstanceByPathAndComponent(path, component, (IEnumerable <Type>)parameter_types));
 }
Ejemplo n.º 10
0
 static public T GetContents <T>(this VariableInstance item)
 {
     return(item.GetContents().Convert <T>());
 }