private Descriptor CreateFdoFunctionDescriptor(FdoProviderCapabilitiesExpressionFunctionDefinition func)
 {
     var desc = new Descriptor();
     desc.Name = func.Name;
     string fmt = "{0}({1})"; //NOXLATE
     List<string> args = new List<string>();
     foreach (FdoProviderCapabilitiesExpressionFunctionDefinitionArgumentDefinition argDef in func.ArgumentDefinitionList)
     {
         args.Add(argDef.Name.Trim());
     }
     string argsStr = StringifyFunctionArgs(args);
     string expr = string.Format(fmt, func.Name, argsStr); //NOXLATE
     desc.Description = string.Format(Strings.ExprEditorFunctionDesc, expr, func.Description, func.ReturnType, Environment.NewLine);
     desc.AppendText = "(" + argsStr + ")";
     return desc;
 }
 public static bool LoadFromFile(string fileName, out FdoProviderCapabilitiesExpressionFunctionDefinition obj)
 {
     System.Exception exception = null;
     return LoadFromFile(fileName, out obj, out exception);
 }
 /// <summary>
 /// Deserializes xml markup from file into an FdoProviderCapabilitiesExpressionFunctionDefinition object
 /// </summary>
 /// <param name="fileName">string xml file to load and deserialize</param>
 /// <param name="obj">Output FdoProviderCapabilitiesExpressionFunctionDefinition object</param>
 /// <param name="exception">output Exception value if deserialize failed</param>
 /// <returns>true if this XmlSerializer can deserialize the object; otherwise, false</returns>
 public static bool LoadFromFile(string fileName, out FdoProviderCapabilitiesExpressionFunctionDefinition obj, out System.Exception exception)
 {
     exception = null;
     obj = default(FdoProviderCapabilitiesExpressionFunctionDefinition);
     try {
         obj = LoadFromFile(fileName);
         return true;
     }
     catch (System.Exception ex) {
         exception = ex;
         return false;
     }
 }
 public static bool Deserialize(string xml, out FdoProviderCapabilitiesExpressionFunctionDefinition obj)
 {
     System.Exception exception = null;
     return Deserialize(xml, out obj, out exception);
 }
 /// <summary>
 /// Deserializes workflow markup into an FdoProviderCapabilitiesExpressionFunctionDefinition object
 /// </summary>
 /// <param name="xml">string workflow markup to deserialize</param>
 /// <param name="obj">Output FdoProviderCapabilitiesExpressionFunctionDefinition object</param>
 /// <param name="exception">output Exception value if deserialize failed</param>
 /// <returns>true if this XmlSerializer can deserialize the object; otherwise, false</returns>
 public static bool Deserialize(string xml, out FdoProviderCapabilitiesExpressionFunctionDefinition obj, out System.Exception exception)
 {
     exception = null;
     obj = default(FdoProviderCapabilitiesExpressionFunctionDefinition);
     try {
         obj = Deserialize(xml);
         return true;
     }
     catch (System.Exception ex) {
         exception = ex;
         return false;
     }
 }
Ejemplo n.º 6
0
 public FunctionItem(FdoProviderCapabilitiesExpressionFunctionDefinition fd)
 {
     _func = fd;
 }