AddInitializers() 공개 메소드

Adds the dictionary initializers.
public AddInitializers ( IEnumerable inits ) : DictionaryDescriptor
inits IEnumerable The initializers.
리턴 DictionaryDescriptor
예제 #1
0
 /// <summary>
 /// Copies the initializers to the other <see cref="PropertyDescriptor"/>
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public DictionaryDescriptor CopyInitializers(DictionaryDescriptor other)
 {
     if (initializers != null)
     {
         other.AddInitializers(initializers);
     }
     return(this);
 }
예제 #2
0
 /// <summary>
 /// Copies the initializers to the other <see cref="PropertyDescriptor"/>
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public DictionaryDescriptor CopyInitializers(DictionaryDescriptor other)
 {
     if (initializers != null)
     {
         other.AddInitializers(initializers.Select(init => init.Copy()).OfType <IDictionaryInitializer>());
     }
     return(this);
 }
예제 #3
0
 /// <summary>
 /// Copies the filtered initializers to the other <see cref="PropertyDescriptor"/>
 /// </summary>
 /// <param name="other"></param>
 /// <param name="selector"></param>
 /// <returns></returns>
 public DictionaryDescriptor CopyInitializers(DictionaryDescriptor other, Func <IDictionaryInitializer, bool> selector)
 {
     if (selector == null)
     {
         throw new ArgumentNullException("selector");
     }
     if (initializers != null)
     {
         other.AddInitializers(initializers.Where(selector));
     }
     return(this);
 }
예제 #4
0
		/// <summary>
		/// Copies the initializers to the other <see cref="PropertyDescriptor"/>
		/// </summary>
		/// <param name="other"></param>
		/// <returns></returns>
		public DictionaryDescriptor CopyInitializers(DictionaryDescriptor other)
		{
			if (initializers != null)
			{
				other.AddInitializers(initializers);
			}
			return this;
		}
예제 #5
0
		/// <summary>
		/// Copies the filtered initializers to the other <see cref="PropertyDescriptor"/>
		/// </summary>
		/// <param name="other"></param>
		/// <param name="selector"></param>
		/// <returns></returns>
		public DictionaryDescriptor CopyInitializers(DictionaryDescriptor other, Func<IDictionaryInitializer, bool> selector)
		{
			if (selector == null)
			{
				throw new ArgumentNullException("selector");
			}
			if (initializers != null)
			{
				other.AddInitializers(initializers.Where(selector));
			}
			return this;
		}
예제 #6
0
		/// <summary>
		/// Copies the initializers to the other <see cref="PropertyDescriptor"/>
		/// </summary>
		/// <param name="other"></param>
		/// <returns></returns>
		public DictionaryDescriptor CopyInitializers(DictionaryDescriptor other)
		{
			if (initializers != null)
			{
				other.AddInitializers(initializers.Select(init => init.Copy()).OfType<IDictionaryInitializer>());
			}
			return this;
		}