private static bool SupportsDeferredBinding()

in sdk/Sdk/FunctionMetadataGenerator.cs [803:829]


        private static bool SupportsDeferredBinding(CustomAttribute attribute, TypeReference bindingType)
        {
            var typeDefinition = attribute?.AttributeType?.Resolve();

            if (typeDefinition is null)
            {
                return false;
            }

            // checking attributes advertised by the binding attribute
            foreach (CustomAttribute bindingAttribute in typeDefinition.CustomAttributes)
            {
                if (string.Equals(bindingAttribute.AttributeType.FullName, Constants.InputConverterAttributeType, StringComparison.Ordinal))
                {
                    // InputConverterAttribute will have supported converter type
                    foreach (var customAttribute in bindingAttribute.ConstructorArguments)
                    {
                        if (DoesConverterSupportDeferredBinding(customAttribute, bindingType))
                        {
                            return true;
                        }
                    }
                }
            }

            return false;
        }