mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 21:24:58 +00:00
Fixing bug where net standard would complain about being unable to get attributes from simpl binaries
This commit is contained in:
@@ -254,7 +254,14 @@ namespace ICD.Common.Utils
|
|||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
return assembly.GetCustomAttributes(typeof(T), false).Cast<T>();
|
return assembly.GetCustomAttributes(typeof(T), false).Cast<T>();
|
||||||
#else
|
#else
|
||||||
|
try
|
||||||
|
{
|
||||||
return assembly.GetCustomAttributes<T>();
|
return assembly.GetCustomAttributes<T>();
|
||||||
|
}
|
||||||
|
catch (FileNotFoundException)
|
||||||
|
{
|
||||||
|
return Enumerable.Empty<object>();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user