public FailedCreationResult( Type type, CreationMode creationMode, IList <string>?reasonsForFailure = null, IList <ResolvedConstructor>?consideredConstructors = null) { this.type = type; this.creationMode = creationMode; this.reasonsForFailure = reasonsForFailure; this.consideredConstructors = consideredConstructors; }
private CreationResult( Type type, CreationMode creationMode, IList <string> reasonsForFailure = null, IList <ResolvedConstructor> consideredConstructors = null) { this.WasSuccessful = false; this.type = type; this.creationMode = creationMode; this.reasonsForFailure = reasonsForFailure; this.consideredConstructors = consideredConstructors; }