Exemplo n.º 1
0
 public IEnumerable <EditFunction> GetFunctions()
 {
     return(target_type.GetFilteredInstanceMethods(
                Filterer_MethodInfo.HasCustomAttributeOfType <InspectorFunctionAttribute>()
                ).Convert(m => m.CreateFunction())
            .Convert(f => EditFunction.New(this, f)));
 }
Exemplo n.º 2
0
 public EditFunction ForceFunction(string path, IEnumerable <Type> parameter_types)
 {
     return(EditFunction.New(
                this,
                target_type.GetFunctionByPath(path, parameter_types)
                .AssertNotNull(() => new MissingMethodException("No function exists for type " + GetTargetType() + " and path " + path))
                ));
 }