private ImportDefinitionBinding CreateImport(ParameterInfo parameter, ImmutableHashSet <IImportSatisfiabilityConstraint> importConstraints) { Assumes.True(this.TryCreateImportDefinition(parameter.ParameterType, parameter, importConstraints, out ImportDefinition? importDefinition)); return(new ImportDefinitionBinding( importDefinition, TypeRef.Get(parameter.Member.DeclaringType !, this.Resolver), ParameterRef.Get(parameter, this.Resolver), TypeRef.Get(parameter.ParameterType, this.Resolver), TypeRef.Get(GetImportingSiteTypeWithoutCollection(importDefinition, parameter.ParameterType), this.Resolver))); }
private ImportDefinitionBinding CreateImport(ParameterInfo parameter) { Assumes.True(this.TryCreateImportDefinition(parameter.ParameterType, parameter, out ImportDefinition? importDefinition)); return(new ImportDefinitionBinding( importDefinition, TypeRef.Get(parameter.Member.DeclaringType !, this.Resolver), ParameterRef.Get(parameter, this.Resolver), TypeRef.Get(parameter.ParameterType, this.Resolver), TypeRef.Get(GetImportingSiteTypeWithoutCollection(importDefinition, parameter.ParameterType), this.Resolver))); }
private ImportDefinitionBinding CreateImport(ParameterInfo parameter, ImmutableHashSet <IImportSatisfiabilityConstraint> importConstraints) { ImportDefinition result; Assumes.True(this.TryCreateImportDefinition(parameter.ParameterType, parameter, importConstraints, out result)); return(new ImportDefinitionBinding(result, TypeRef.Get(parameter.Member.DeclaringType, this.Resolver), ParameterRef.Get(parameter, this.Resolver))); }
private ImportDefinitionBinding CreateImport(ParameterInfo parameter) { ImportDefinition definition; Assumes.True(this.TryCreateImportDefinition(parameter.ParameterType, parameter, out definition)); return(new ImportDefinitionBinding(definition, TypeRef.Get(parameter.Member.DeclaringType, this.Resolver), ParameterRef.Get(parameter, this.Resolver))); }