Catel.Fody.Weaving.Argument.IsMinimalMethodCallWeaver.SelectMethod C# (CSharp) Method

SelectMethod() protected method

protected SelectMethod ( Mono.Cecil.TypeDefinition argumentTypeDefinition, TypeReference typeToCheck, Mono.Cecil.MethodDefinition &selectedMethod ) : void
argumentTypeDefinition Mono.Cecil.TypeDefinition
typeToCheck Mono.Cecil.TypeReference
selectedMethod Mono.Cecil.MethodDefinition
return void
        protected override void SelectMethod(TypeDefinition argumentTypeDefinition, TypeReference typeToCheck, out MethodDefinition selectedMethod)
        {
            selectedMethod = argumentTypeDefinition.Methods.FirstOrDefault(definition => definition.Name == "IsMinimal" && definition.HasGenericParameters && definition.Parameters.Count == 3 && definition.Parameters[0].ParameterType.FullName == "System.String");
        }
        #endregion
IsMinimalMethodCallWeaver