mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-12 03:05:06 +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);
|
||||
}
|
||||
|
||||
/// <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)
|
||||
|
||||
Reference in New Issue
Block a user