public AddMetaInitializers ( IEnumerable |
||
inits | IEnumerable |
The meta-data initializers. |
리턴 |
/// <summary> /// Copies the meta-initializers to the other <see cref="PropertyDescriptor"/> /// </summary> /// <param name="other"></param> /// <returns></returns> public DictionaryDescriptor CopyMetaInitializers(DictionaryDescriptor other) { if (metaInitializers != null) { other.AddMetaInitializers(metaInitializers); } return(this); }
/// <summary> /// Copies the meta-initializers to the other <see cref="PropertyDescriptor"/> /// </summary> /// <param name="other"></param> /// <returns></returns> public DictionaryDescriptor CopyMetaInitializers(DictionaryDescriptor other) { if (metaInitializers != null) { other.AddMetaInitializers(metaInitializers.Select(meta => meta.Copy()).OfType <IDictionaryMetaInitializer>()); } return(this); }
/// <summary> /// Copies the filtered meta-initializers to the other <see cref="PropertyDescriptor"/> /// </summary> /// <param name="other"></param> /// <param name="selector"></param> /// <returns></returns> public DictionaryDescriptor CopyMetaInitializers(DictionaryDescriptor other, Func <IDictionaryMetaInitializer, bool> selector) { if (selector == null) { throw new ArgumentNullException("selector"); } if (metaInitializers != null) { other.AddMetaInitializers(metaInitializers.Where(selector)); } return(this); }
/// <summary> /// Copies the filtered meta-initializers to the other <see cref="PropertyDescriptor"/> /// </summary> /// <param name="other"></param> /// <param name="selector"></param> /// <returns></returns> public DictionaryDescriptor CopyMetaInitializers(DictionaryDescriptor other, Func<IDictionaryMetaInitializer, bool> selector) { if (selector == null) { throw new ArgumentNullException("selector"); } if (metaInitializers != null) { other.AddMetaInitializers(metaInitializers.Where(selector)); } return this; }
/// <summary> /// Copies the meta-initializers to the other <see cref="PropertyDescriptor"/> /// </summary> /// <param name="other"></param> /// <returns></returns> public DictionaryDescriptor CopyMetaInitializers(DictionaryDescriptor other) { if (metaInitializers != null) { other.AddMetaInitializers(metaInitializers); } return this; }
/// <summary> /// Copies the meta-initializers to the other <see cref="PropertyDescriptor"/> /// </summary> /// <param name="other"></param> /// <returns></returns> public DictionaryDescriptor CopyMetaInitializers(DictionaryDescriptor other) { if (metaInitializers != null) { other.AddMetaInitializers(metaInitializers.Select(meta => meta.Copy()).OfType<IDictionaryMetaInitializer>()); } return this; }