Пример #1
0
 public ItemActivator()
 {
     Item = new ItemContainer();
 }
Пример #2
0
 public static bool TryGetItemContainer(this ItemStorage itemStorage, Type itemContainerType, out ItemContainer itemContainer)
 {
     itemContainer = itemStorage.Items.FirstOrDefault(itemContainerType.IsInstanceOfType);
     return(itemContainer != null);
 }