Метод | Описание | |
---|---|---|
CanBeOverride ( |
Determines whether method can override basemethod.
|
|
OverrideCost ( |
Calculates override cost, i.e. whether the override is possible and its value. In case of more possible overrides, the one with better cost is selected.
|
|
ResolveOverride ( this method ) : |
Resolves best method to be overriden.
|
|
SignaturesMatch ( this a, |
Checks whether signatures of two methods match exactly so one can override the second.
|
Метод | Описание | |
---|---|---|
EnumerateOverridableTypes ( |
Enumerates base types and interfaces of given type (i.e. types that can contain methods that can be overriden).
|
|
IsAllowedCost ( ConversionCost cost ) : bool |
public static CanBeOverride ( |
||
method | Source method. | |
basemethod | Overriden method. | |
Результат | bool |
public static OverrideCost ( |
||
method | Source method. | |
basemethod | A hypothetical base method. | |
Результат | ConversionCost |
public static ResolveOverride ( this method ) : |
||
method | this | The override. |
Результат |
public static SignaturesMatch ( this a, |
||
a | this | |
b | ||
Результат | bool |