1 interface inheriting from ICompositionElement
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\ReflectionModel\IReflectionPartCreationInfo.cs (1)
10
internal interface IReflectionPartCreationInfo :
ICompositionElement
10 implementations of ICompositionElement
System.ComponentModel.Composition (10)
System\ComponentModel\Composition\Hosting\ApplicationCatalog.cs (1)
15
public partial class ApplicationCatalog : ComposablePartCatalog,
ICompositionElement
System\ComponentModel\Composition\Hosting\AssemblyCatalog.cs (1)
23
public class AssemblyCatalog : ComposablePartCatalog,
ICompositionElement
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (1)
22
public partial class DirectoryCatalog : ComposablePartCatalog, INotifyComposablePartCatalogChanged,
ICompositionElement
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (1)
25
public class TypeCatalog : ComposablePartCatalog,
ICompositionElement
System\ComponentModel\Composition\Primitives\CompositionElement.cs (1)
11
internal sealed class CompositionElement :
ICompositionElement
System\ComponentModel\Composition\Primitives\SerializableCompositionElement.cs (1)
13
internal sealed class SerializableCompositionElement :
ICompositionElement
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (1)
16
internal class ReflectionComposablePart : ComposablePart,
ICompositionElement
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (1)
14
internal sealed class ReflectionComposablePartDefinition : ComposablePartDefinition,
ICompositionElement
System\ComponentModel\Composition\ReflectionModel\ReflectionImportDefinition.cs (1)
9
internal abstract class ReflectionImportDefinition : ContractBasedImportDefinition,
ICompositionElement
System\ComponentModel\Composition\ReflectionModel\ReflectionMemberExportDefinition.cs (1)
10
internal sealed class ReflectionMemberExportDefinition : ExportDefinition,
ICompositionElement
148 references to ICompositionElement
System.ComponentModel.Composition (148)
System\ComponentModel\Composition\AttributedModel\AttributedModelDiscovery.cs (6)
16
public static ComposablePartDefinition? CreatePartDefinitionIfDiscoverable(Type type,
ICompositionElement
? origin)
27
public static ReflectionComposablePartDefinition CreatePartDefinition(Type type, PartCreationPolicyAttribute? partCreationPolicy, bool ignoreConstructorImports,
ICompositionElement
? origin)
41
ReflectionComposablePartDefinition definition = AttributedModelDiscovery.CreatePartDefinition(attributedPart.GetType(), PartCreationPolicyAttribute.Shared, true, (
ICompositionElement
?)null);
58
ReflectionComposablePartDefinition definition = AttributedModelDiscovery.CreatePartDefinition(mappedType, PartCreationPolicyAttribute.Shared, true, (
ICompositionElement
?)null);
71
public static ReflectionParameterImportDefinition CreateParameterImportDefinition(ParameterInfo parameter,
ICompositionElement
origin)
108
public static ReflectionMemberImportDefinition CreateMemberImportDefinition(MemberInfo member,
ICompositionElement
origin)
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (5)
20
private readonly
ICompositionElement
? _origin;
27
public AttributedPartCreationInfo(Type type, PartCreationPolicyAttribute? partCreationPolicy, bool ignoreConstructorImports,
ICompositionElement
? origin)
154
string
ICompositionElement
.DisplayName
159
ICompositionElement
?
ICompositionElement
.Origin
System\ComponentModel\Composition\AttributedModelServices.cs (2)
55
public static ComposablePartDefinition CreatePartDefinition(Type type,
ICompositionElement
? origin)
62
public static ComposablePartDefinition CreatePartDefinition(Type type,
ICompositionElement
? origin, bool ensureIsDiscoverable)
System\ComponentModel\Composition\CompositionError.cs (13)
20
private readonly
ICompositionElement
? _element;
32
: this(CompositionErrorId.Unknown, message, (
ICompositionElement
?)null, (Exception?)null)
42
/// The <see cref="
ICompositionElement
"/> that is the cause of the
52
public CompositionError(string? message,
ICompositionElement
? element)
73
: this(CompositionErrorId.Unknown, message, (
ICompositionElement
?)null, exception)
88
/// The <see cref="
ICompositionElement
"/> that is the cause of the
98
public CompositionError(string? message,
ICompositionElement
? element, Exception? exception)
103
internal CompositionError(CompositionErrorId id, string? description,
ICompositionElement
? element, Exception? exception)
115
/// The <see cref="
ICompositionElement
"/> that is the cause of the
118
public
ICompositionElement
? Element
170
return Create(id, (
ICompositionElement
?)null, (Exception?)null, format, parameters);
173
internal static CompositionError Create(CompositionErrorId id,
ICompositionElement
element, string format, params object?[] parameters)
178
internal static CompositionError Create(CompositionErrorId id,
ICompositionElement
? element, Exception? exception, string format, params object?[] parameters)
System\ComponentModel\Composition\CompositionErrorDebuggerProxy.cs (1)
30
public
ICompositionElement
? Element
System\ComponentModel\Composition\CompositionException.cs (1)
248
private static void WriteElementGraph(StringBuilder writer,
ICompositionElement
element)
System\ComponentModel\Composition\ErrorBuilder.cs (4)
52
ICompositionElement
element = part.ToElement();
67
ICompositionElement
element = definition.ToElement();
83
ICompositionElement
element = definition.ToElement();
97
ICompositionElement
element = part.ToElement();
System\ComponentModel\Composition\ExportServices.cs (1)
137
internal static T CastExportedValue<T>(
ICompositionElement
element, object? exportedValue)
System\ComponentModel\Composition\Hosting\ApplicationCatalog.cs (6)
20
private readonly
ICompositionElement
? _definitionOrigin;
25
public ApplicationCatalog(
ICompositionElement
definitionOrigin)
39
public ApplicationCatalog(ReflectionContext reflectionContext,
ICompositionElement
definitionOrigin)
193
string
ICompositionElement
.DisplayName
204
ICompositionElement
?
ICompositionElement
.Origin
System\ComponentModel\Composition\Hosting\AssemblyCatalog.cs (12)
26
private readonly
ICompositionElement
_definitionOrigin;
148
/// The <see cref="
ICompositionElement
"/> CompositionElement used by Diagnostics to identify the source for parts.
186
public AssemblyCatalog(string codeBase,
ICompositionElement
definitionOrigin)
208
/// The <see cref="
ICompositionElement
"/> CompositionElement used by Diagnostics to identify the source for parts.
250
public AssemblyCatalog(string codeBase, ReflectionContext reflectionContext,
ICompositionElement
definitionOrigin)
307
/// The <see cref="
ICompositionElement
"/> CompositionElement used by Diagnostics to identify the source for parts.
324
public AssemblyCatalog(Assembly assembly, ReflectionContext reflectionContext,
ICompositionElement
definitionOrigin)
367
/// The <see cref="
ICompositionElement
"/> CompositionElement used by Diagnostics to identify the source for parts.
380
public AssemblyCatalog(Assembly assembly,
ICompositionElement
definitionOrigin)
482
string
ICompositionElement
.DisplayName
493
ICompositionElement
?
ICompositionElement
.Origin
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (12)
32
private readonly
ICompositionElement
? _definitionOrigin;
128
/// The <see cref="
ICompositionElement
"/> CompositionElement used by Diagnostics to identify the source for parts.
149
public DirectoryCatalog(string path,
ICompositionElement
definitionOrigin)
170
/// The <see cref="
ICompositionElement
"/> CompositionElement used by Diagnostics to identify the source for parts.
192
public DirectoryCatalog(string path, ReflectionContext reflectionContext,
ICompositionElement
definitionOrigin)
252
/// The <see cref="
ICompositionElement
"/> CompositionElement used by Diagnostics to identify the source for parts.
274
public DirectoryCatalog(string path, string searchPattern,
ICompositionElement
definitionOrigin)
353
/// The <see cref="
ICompositionElement
"/> CompositionElement used by Diagnostics to identify the source for parts.
377
public DirectoryCatalog(string path, string searchPattern, ReflectionContext reflectionContext,
ICompositionElement
definitionOrigin)
788
string
ICompositionElement
.DisplayName
799
ICompositionElement
?
ICompositionElement
.Origin
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (8)
31
private readonly
ICompositionElement
_definitionOrigin;
96
/// The <see cref="
ICompositionElement
"/> CompositionElement used by Diagnostics to identify the source for parts.
101
public TypeCatalog(IEnumerable<Type> types,
ICompositionElement
definitionOrigin)
154
/// The <see cref="
ICompositionElement
"/> CompositionElement used by Diagnostics to identify the source for parts.
162
public TypeCatalog(IEnumerable<Type> types, ReflectionContext reflectionContext,
ICompositionElement
definitionOrigin)
235
string
ICompositionElement
.DisplayName
246
ICompositionElement
?
ICompositionElement
.Origin
System\ComponentModel\Composition\Primitives\ComposablePartException.cs (12)
19
private readonly
ICompositionElement
? _element;
25
: this((string?)null, (
ICompositionElement
?)null, (Exception?)null)
56
_element = (
ICompositionElement
?)info.GetValue("Element", typeof(
ICompositionElement
));
69
: this(message, (
ICompositionElement
?)null, (Exception?)null)
84
/// The <see cref="
ICompositionElement
"/> that is the cause of the
89
public ComposablePartException(string? message,
ICompositionElement
? element)
110
: this(message, (
ICompositionElement
?)null, innerException)
125
/// The <see cref="
ICompositionElement
"/> that is the cause of the
135
public ComposablePartException(string? message,
ICompositionElement
? element, Exception? innerException)
145
/// The <see cref="
ICompositionElement
"/> that is the cause of the
148
public
ICompositionElement
? Element
System\ComponentModel\Composition\Primitives\ComposablePartExceptionDebuggerProxy.cs (1)
19
public
ICompositionElement
? Element
System\ComponentModel\Composition\Primitives\CompositionElement.cs (5)
14
private readonly
ICompositionElement
? _origin;
16
private static readonly
ICompositionElement
UnknownOrigin = new CompositionElement(SR.CompositionElement_UnknownOrigin, (
ICompositionElement
?)null);
24
public CompositionElement(string? displayName,
ICompositionElement
? origin)
35
public
ICompositionElement
? Origin
System\ComponentModel\Composition\Primitives\CompositionElementDebuggerProxy.cs (1)
28
public
ICompositionElement
? Origin
System\ComponentModel\Composition\Primitives\CompositionElementExtensions.cs (11)
8
public static
ICompositionElement
? ToSerializableElement(this
ICompositionElement
? element)
13
public static
ICompositionElement
ToElement(this Export export)
16
if (export is
ICompositionElement
element)
25
public static
ICompositionElement
ToElement(this ExportDefinition definition)
30
public static
ICompositionElement
ToElement(this ImportDefinition definition)
35
public static
ICompositionElement
ToElement(this ComposablePart part)
40
public static
ICompositionElement
ToElement(this ComposablePartDefinition definition)
57
if (value is
ICompositionElement
element)
65
private static
ICompositionElement
ToElementCore(object value)
67
if (value is
ICompositionElement
element)
System\ComponentModel\Composition\Primitives\ICompositionElement.cs (5)
15
/// A <see cref="string"/> containing a human-readable display name of the <see cref="
ICompositionElement
"/>.
33
/// A <see cref="
ICompositionElement
"/> from which the current
34
/// <see cref="
ICompositionElement
"/> originated, or <see langword="null"/>
35
/// if the <see cref="
ICompositionElement
"/> is the root composition element.
37
ICompositionElement
? Origin
System\ComponentModel\Composition\Primitives\SerializableCompositionElement.cs (6)
16
private readonly
ICompositionElement
? _origin;
18
public SerializableCompositionElement(string displayName,
ICompositionElement
? origin)
28
public
ICompositionElement
? Origin => _origin;
31
public static
ICompositionElement
? FromICompositionElement(
ICompositionElement
? element)
38
ICompositionElement
? origin = FromICompositionElement(element.Origin);
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (6)
306
((
ICompositionElement
)memberImport).Origin,
329
((
ICompositionElement
)memberImport).Origin);
349
((
ICompositionElement
)parameterImport).Origin,
370
((
ICompositionElement
)parameterImport).Origin);
413
((
ICompositionElement
)reflectionExport).Origin);
531
public
ICompositionElement
? Origin
System\ComponentModel\Composition\ReflectionModel\PartCreatorMemberImportDefinition.cs (1)
17
ICompositionElement
? origin,
System\ComponentModel\Composition\ReflectionModel\PartCreatorParameterImportDefinition.cs (1)
18
ICompositionElement
? origin,
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (3)
149
string
ICompositionElement
.DisplayName
154
ICompositionElement
ICompositionElement
.Origin
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (3)
310
string
ICompositionElement
.DisplayName
315
ICompositionElement
?
ICompositionElement
.Origin
System\ComponentModel\Composition\ReflectionModel\ReflectionImportDefinition.cs (5)
11
private readonly
ICompositionElement
? _origin;
22
ICompositionElement
? origin)
28
string
ICompositionElement
.DisplayName
33
ICompositionElement
?
ICompositionElement
.Origin
System\ComponentModel\Composition\ReflectionModel\ReflectionMemberExportDefinition.cs (5)
14
private readonly
ICompositionElement
? _origin;
17
public ReflectionMemberExportDefinition(LazyMemberInfo member, ExportDefinition exportDefinition,
ICompositionElement
? origin)
38
string
ICompositionElement
.DisplayName
43
ICompositionElement
?
ICompositionElement
.Origin
System\ComponentModel\Composition\ReflectionModel\ReflectionMemberImportDefinition.cs (1)
24
ICompositionElement
? origin)
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (10)
132
ICompositionElement
? origin)
150
ICompositionElement
? origin)
169
ICompositionElement
? origin)
184
ICompositionElement
? origin)
211
ICompositionElement
? origin)
254
ICompositionElement
? origin)
268
ICompositionElement
? origin)
323
private readonly
ICompositionElement
? _origin;
333
ICompositionElement
? origin)
457
public
ICompositionElement
? Origin
System\ComponentModel\Composition\ReflectionModel\ReflectionParameterImportDefinition.cs (1)
24
ICompositionElement
? origin)