mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-17 05:35:07 +00:00
docs: adding missing comments
This commit is contained in:
@@ -100,6 +100,11 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
return s_DecimalNumericTypes.Contains(extends);
|
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)
|
public static Assembly GetAssembly(this Type extends)
|
||||||
{
|
{
|
||||||
if (extends == null)
|
if (extends == null)
|
||||||
@@ -114,6 +119,12 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
.Assembly;
|
.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)
|
public static bool IsAssignableTo(this Type from, Type to)
|
||||||
{
|
{
|
||||||
if (from == null)
|
if (from == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user