Example #1
0
 /// <summary> An AttributeSource that uses the same attributes as the supplied one.</summary>
 public AttributeSource(AttributeSource input)
 {
     if (input == null)
     {
         throw new System.ArgumentException("input AttributeSource must not be null");
     }
     this.attributes     = input.attributes;
     this.attributeImpls = input.attributeImpls;
     this.factory        = input.factory;
 }
 /// <summary> An AttributeSource that uses the same attributes as the supplied one.</summary>
 public AttributeSource(AttributeSource input)
 {
     if (input == null)
     {
         throw new System.ArgumentException("input AttributeSource must not be null");
     }
     this.attributes = input.attributes;
     this.attributeImpls = input.attributeImpls;
     this.factory = input.factory;
 }
Example #3
0
		/// <summary> An AttributeSource using the supplied {@link AttributeFactory} for creating new {@link Attribute} instances.</summary>
		public AttributeSource(AttributeFactory factory)
		{
            this.attributes = new SupportClass.GeneralKeyedCollection<Type, SupportClass.AttributeImplItem>(delegate(SupportClass.AttributeImplItem att) { return att.Key; });
            this.attributeImpls = new SupportClass.GeneralKeyedCollection<Type, SupportClass.AttributeImplItem>(delegate(SupportClass.AttributeImplItem att) { return att.Key; });
			this.factory = factory;
		}
Example #4
0
 /// <summary> An AttributeSource using the supplied {@link AttributeFactory} for creating new {@link Attribute} instances.</summary>
 public AttributeSource(AttributeFactory factory)
 {
     this.attributes     = new SupportClass.GeneralKeyedCollection <Type, SupportClass.AttributeImplItem>(delegate(SupportClass.AttributeImplItem att) { return(att.Key); });
     this.attributeImpls = new SupportClass.GeneralKeyedCollection <Type, SupportClass.AttributeImplItem>(delegate(SupportClass.AttributeImplItem att) { return(att.Key); });
     this.factory        = factory;
 }