System\ComponentModel\Composition\ExceptionBuilder.cs (16)
23string message = Format(SR.Argument_NullElement, parameterName);
41throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(memberName)), nameof(memberName));
44string message = Format(SR.NotImplemented_NotOverriddenByDerived, memberName);
55throw new ArgumentException(SR.ArgumentException_EmptyString);
59string message = Format(SR.ExportDefinitionNotOnThisComposablePart, parameterName);
70throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(parameterName)), nameof(parameterName));
73string message = Format(SR.ImportDefinitionNotOnThisComposablePart, parameterName);
94throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(parameterName)), nameof(parameterName));
102return new ArgumentException(SR.Format(SR.ReflectionModel_InvalidPartDefinition, partDefinitionType), parameterName);
111throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(typeName)), nameof(typeName));
114string message = Format(SR.ExportFactory_TooManyGenericParameters, typeName);
System\ComponentModel\Composition\Hosting\CompositionServices.cs (7)
43throw new Exception(SR.Diagnostic_InternalExceptionMessage);
127throw new Exception(SR.Diagnostic_InternalExceptionMessage);
269throw ExceptionBuilder.CreateDiscoveryException(SR.Discovery_ReservedMetadataNameUsed, member.GetDisplayName(), provider.Name);
276throw ExceptionBuilder.CreateDiscoveryException(SR.Discovery_DuplicateMetadataNameValues, member.GetDisplayName(), provider.Name);
303throw ExceptionBuilder.CreateDiscoveryException(SR.Discovery_ReservedMetadataNameUsed, pi.GetDisplayName(), pi.Name);
310throw ExceptionBuilder.CreateDiscoveryException(SR.Discovery_MetadataContainsValueWithInvalidType, pi.GetDisplayName(), value.GetType().GetDisplayName());
315throw ExceptionBuilder.CreateDiscoveryException(SR.Discovery_DuplicateMetadataNameValues, member.GetDisplayName(), pi.Name);
System\ComponentModel\Composition\ReflectionModel\ImportingMember.cs (20)
71SR.Format(
72SR.ReflectionModel_ImportThrewException,
83SR.Format(
84SR.ImportNotValidOnIndexers,
98SR.Format(
99SR.ReflectionModel_ImportNotWritable,
135SR.Format(
136SR.ReflectionModel_ImportCollectionGetThrewException,
157SR.Format(
158SR.ReflectionModel_ImportCollectionConstructionThrewException,
172SR.Format(
173SR.ReflectionModel_ImportCollectionNull,
195SR.Format(
196SR.ReflectionModel_ImportCollectionIsReadOnlyThrewException,
206SR.Format(
207SR.ReflectionModel_ImportCollectionNotWritable,
225SR.Format(
226SR.ReflectionModel_ImportCollectionClearThrewException,
242SR.Format(
243SR.ReflectionModel_ImportCollectionAddThrewException,
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (14)
51SR.Format(SR.ReflectionModel_InvalidExportDefinition, exportDefinition.GetType()),
66SR.Format(SR.ReflectionModel_InvalidMemberImportDefinition, importDefinition.GetType()),
81SR.Format(SR.ReflectionModel_InvalidParameterImportDefinition, importDefinition.GetType()),
97SR.Format(SR.ReflectionModel_InvalidImportDefinition, importDefinition.GetType()),
119SR.Format(SR.ReflectionModel_InvalidImportDefinition, importDefinition.GetType()),
420SR.Format(SR.ReflectionModel_InvalidExportDefinition, export.GetType()));
446SR.Format(SR.ReflectionModel_InvalidMemberImportDefinition, import.GetType()));