Class CsMethodExtentions
Extension methods that support the CsMethod model.
Inherited Members
Namespace: CodeFactory.WinVs.Models.CSharp
Assembly: CodeFactory.WinVs.dll
Syntax
public static class CsMethodExtentions
Methods
GetComparisonHashCode(CsMethod, bool, bool, bool, List<MapNamespace>, bool, string, string, string, string)
Creates a comparision hashcode from a CsMethod model.
Declaration
public static int GetComparisonHashCode(this CsMethod source, bool includeSecurity = true, bool includeKeywords = true, bool includeAbstractKeyword = false, List<MapNamespace> mappedNamespaces = null, bool forceAsyncDefinition = false, string asyncPrefix = null, string asyncSuffix = null, string namePrefix = null, string nameSuffix = null)
Parameters
Type | Name | Description |
---|---|---|
CsMethod | source | Source model to use to build the hash. |
bool | includeSecurity | Optional parameter that includes security in the comparision hash, default value is true. |
bool | includeKeywords | Optional parameter that includes keywords in the comparision hash, default value is true. |
bool | includeAbstractKeyword | Optional parameter that includes abstract keyword in the comparision hash, default value is false. |
List<MapNamespace> | mappedNamespaces | Optional parameter that provides namespaces to be mapped to. |
bool | forceAsyncDefinition | Optional parameter that forces the method to confirm to an async signature, default value is false. |
string | asyncPrefix | Optional parameter that is used with forceAsyncDefinition that includes an expected prefix on the method name, default value is null. |
string | asyncSuffix | Optional parameter that is used with forceAsyncDefinition that includes an expected suffix on the method name, default value is Async. |
string | namePrefix | Optional prameter that determines if the name will have a prefix assigned to it, default is null. |
string | nameSuffix | Optional parameter that determines if the name will have a prefix assigned to it, default is null. |
Returns
Type | Description |
---|---|
int | Computed hash value for the method signature. |