예제 #1
0
 /// <summary>
 /// Create new entry instance
 /// </summary>
 /// <param name="infType">
 /// The interface type.
 /// </param>
 /// <param name="implType">
 /// The implementation type.
 /// </param>
 /// <param name="name">
 /// The entry name.
 /// </param>
 /// <param name="singleton">
 /// The flag indicating the entry is a singleton.
 /// </param>
 /// <returns>
 /// The created entry.
 /// </returns>
 private static ExportEntry Create(Type infType, Type implType, string name, bool singleton)
 {
     var ret = new ExportEntry { Name = name, InfType = infType, ImplType = implType, IsSingleton = singleton };
     return ret;
 }
예제 #2
0
 /// <summary>
 /// Add an export entry.
 /// </summary>
 /// <param name="entry">
 /// An entry to add.
 /// </param>
 protected void Add(ExportEntry entry)
 {
     this.exportEntries.Add(entry);
 }