Example #1
0
 /// <summary>
 /// Creates a new component type.
 /// </summary>
 /// <param name="id">The unique identifier for this component type.</param>
 /// <param name="collection">The collection this component belongs to, or null if does not belong to one.</param>
 /// <param name="item">The item this component type implements within the collection.</param>
 /// <param name="name">The name of this component type.</param>
 /// <param name="propertyNames">The properties that can be set on this component.</param>
 /// <param name="connectionNames">The connection names for this component type.</param>
 public ComponentType(Guid?id,
                      ComponentTypeCollection collection,
                      ComponentTypeCollectionItem item,
                      ComponentName name,
                      IEnumerable <PropertyName> propertyNames,
                      IEnumerable <ConnectionName> connectionNames,
                      IEnumerable <ComponentConfiguration> configurations)
     : base(collection, item)
 {
     Id              = id;
     Name            = name;
     PropertyNames   = propertyNames.ToHashSet();
     ConnectionNames = connectionNames.ToHashSet();
     Configurations  = configurations.ToList();
 }
 public CollectionType(ComponentTypeCollection collection,
                       ComponentTypeCollectionItem collectionItem)
 {
     Collection     = collection;
     CollectionItem = collectionItem;
 }
 private bool Equals(ComponentTypeCollectionItem other)
 {
     return(string.Equals(Item, other.Item));
 }