collectionExtensionsgetFirstOfTypeT Method |
Namespace: imbSCI.Core.extensions.data
public static T getFirstOfType<T>( this IEnumerable source, bool makeNewIfNotFound = false, Object defaultReturn = null, bool disableException = false )
| Exception | Condition |
|---|---|
| [!:aceGeneralException] | Resource of type " + typeof(T).Name + " not supplied in the resources collection |