Interface IIdentifiableTrySearch<TIdentifiable>
- Namespace
- MonkeyLoader.Meta
- Assembly
- MonkeyLoader.dll
Defines the interface for a try-search of a root IIdentifiable item.
public interface IIdentifiableTrySearch<TIdentifiable> where TIdentifiable : IIdentifiable
Type Parameters
TIdentifiableThe type of the IIdentifiable items.
Methods
ById(string, out TIdentifiable?)
Tries searching for an item by its given id.
bool ById(string id, out TIdentifiable? item)
Parameters
idstringThe Id of the item to search for.
itemTIdentifiableThe item if found; otherwise,
default(.TIdentifiable)
Returns
- bool
trueif an item was found; otherwise,false.