示例#1
0
 public virtual MethodInfo GetAddMethod(XamlType contentType)
 {
     return(type == null || type.UnderlyingType == null || type.ItemType == null || type.LookupCollectionKind() == XamlCollectionKind.None ? null : type.UnderlyingType.GetMethod("Add", new Type [] { contentType.UnderlyingType }));
 }