本文整理汇总了C#中fyiReporting.RDL.List.AddRange方法的典型用法代码示例。如果您正苦于以下问题:C# List.AddRange方法的具体用法?C# List.AddRange怎么用?C# List.AddRange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fyiReporting.RDL.List
的用法示例。
在下文中一共展示了List.AddRange方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitFunctions
//Done: Look at grouping items, such as Math, Financial, etc
// Josh: 6:21:10 added grouping for common items.
void InitFunctions()
{
List<string> ar = new List<string>();
ar.AddRange(StaticLists.FunctionList);
// Build list of methods in the VBFunctions class
fyiReporting.RDL.FontStyleEnum fsi = FontStyleEnum.Italic; // just want a class from RdlEngine.dll assembly
Assembly a = Assembly.GetAssembly(fsi.GetType());
if (a == null)
return;
Type ft = a.GetType("fyiReporting.RDL.VBFunctions");
BuildMethods(ar, ft, "");
// build list of financial methods in Financial class
ft = a.GetType("fyiReporting.RDL.Financial");
BuildMethods(ar, ft, "Financial.");
a = Assembly.GetAssembly("".GetType());
ft = a.GetType("System.Math");
BuildMethods(ar, ft, "Math.");
ft = a.GetType("System.Convert");
BuildMethods(ar, ft, "Convert.");
ft = a.GetType("System.String");
BuildMethods(ar, ft, "String.");
ar.Sort();
TreeNode ndRoot = new TreeNode("Functions");
tvOp.Nodes.Add(ndRoot);
foreach (TreeNode node in GroupMethods(RemoveDuplicates(ar)))
{
ndRoot.Nodes.Add(node);
}
}
示例2: FillLexerByFields
void FillLexerByFields(DesignXmlDraw dxDraw)
{
var fields = new List<string>();
foreach (var dataSet in dxDraw.DataSetNames)
{
fields.AddRange(dxDraw.GetFields((string)dataSet, false));
}
rdlLexer.SetFields(fields);
}