public static IList <CodeAttributeArgument> GetAttributeArguments(this CodeAttributeArgumentCollection args)
 {
     return(args.Cast <CodeAttributeArgument>().ToList());
 }
示例#2
0
 public static CodeAttributeArgument Find(this CodeAttributeArgumentCollection attributes, string argName)
 {
     return(attributes.Cast <CodeAttributeArgument>().FirstOrDefault(arg => arg.Name == argName));
 }