Пример #1
0
 static public VariableInstance GetVariableInstanceByComponent(this TargetInstance item, string component)
 {
     return(item.GetTargetType().GetVariableByComponent(component)
            .IfNotNull(v => v.CreateInstance(item)));
 }
Пример #2
0
 static public VariableInstance GetVariableInstanceByPath(this TargetInstance item, string full_path)
 {
     return(item.GetTargetType().GetVariableByPath(full_path)
            .IfNotNull(v => v.CreateInstance(item)));
 }
Пример #3
0
 static public ActionInstance GetActionInstanceByPath(this TargetInstance item, string full_path, IEnumerable <object> arguments)
 {
     return(item.GetTargetType().GetActionByPath(full_path, arguments)
            .IfNotNull(a => a.CreateInstance(item)));
 }
Пример #4
0
 public Type GetTargetType()
 {
     return(target_instance.GetTargetType());
 }
Пример #5
0
 static public ActionInstance GetActionInstanceByPathAndComponent(this TargetInstance item, string path, string component, IEnumerable <object> arguments)
 {
     return(item.GetTargetType().GetActionByPathAndComponent(path, component, arguments)
            .IfNotNull(a => a.CreateInstance(item)));
 }