MetalamaAPI documentationFlashtrace APIFlashtrace.​Formatters.​Type­ExtensionsType­Extension­Factory­Base<T>Should­Overwrite
Open sandboxFocus

TypeExtensionFactoryBase<T>.ShouldOverwrite Method

ShouldOverwrite(Type, Boolean, Type, Boolean)

Declaration
public static bool ShouldOverwrite(Type newExtensionTargetType, bool isNewGeneric, Type oldExtensionTargetType, bool isOldGeneric)
Parameters
Type Name Description
Type newExtensionTargetType
Boolean isNewGeneric
Type oldExtensionTargetType
Boolean isOldGeneric
Returns
Type Description
Boolean
Remarks

This logic is supposed to mimic overload resolution in C#.