Class CsClassExtensions
Extensions class that provides common automation tasks rolled up under standard extension methods that support the CsClass model.
Inherited Members
Namespace: CodeFactory.DotNet.CSharp
Assembly: CodeFactory.DotNet.dll
Syntax
public static class CsClassExtensions
Methods
| Improve this Doc View SourceInheritsBaseClass(CsClass, string, string)
Extension method that determines if a target class inherits a target base class.
Declaration
public static bool InheritsBaseClass(this CsClass source, string name, string nameSpace = null)
Parameters
Type | Name | Description |
---|---|---|
CsClass | source | The source class to check for inheritance. |
string | name | The name of the inherited class |
string | nameSpace | Optional parameter for the namespace of the inherited class. |
Returns
Type | Description |
---|---|
bool | True if the class is inherited or false if not. |