mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
docs: adding missing comments
This commit is contained in:
parent
25fb62d484
commit
3239307f66
1 changed files with 11 additions and 0 deletions
|
|
@ -100,6 +100,11 @@ namespace ICD.Common.Utils.Extensions
|
|||
return s_DecimalNumericTypes.Contains(extends);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Assembly containing the type.
|
||||
/// </summary>
|
||||
/// <param name="extends"></param>
|
||||
/// <returns></returns>
|
||||
public static Assembly GetAssembly(this Type extends)
|
||||
{
|
||||
if (extends == null)
|
||||
|
|
@ -114,6 +119,12 @@ namespace ICD.Common.Utils.Extensions
|
|||
.Assembly;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if the type is assignable to the given type.
|
||||
/// </summary>
|
||||
/// <param name="from"></param>
|
||||
/// <param name="to"></param>
|
||||
/// <returns></returns>
|
||||
public static bool IsAssignableTo(this Type from, Type to)
|
||||
{
|
||||
if (from == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue