TryResolve Method
Definition
- Namespace
- Cuemon.Reflection
- Assemblies
- Cuemon.Core.dll
TryResolve(Assembly, out string)
Attempts to resolve the target framework moniker of the specified assembly.
public static bool TryResolve(Assembly assembly, out string targetFrameworkMoniker)
Parameters
assemblyAssemblyThe Assembly to inspect for a TargetFrameworkAttribute.
targetFrameworkMonikerstringWhen this method returns, contains the resolved target framework moniker of the specified
assembly, or null if the operation failed.
Returns
- bool
trueif the target framework moniker of the specifiedassemblywas resolved successfully; otherwise,false.
Exceptions
- ArgumentNullException
assemblyis null.