Interface ITypeReferenceAnalyzer
Analyzes types for type usages.
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public interface ITypeReferenceAnalyzer
Methods
Analyze<T>(Type)
Analyze a type for occurrances of a specified base type
Declaration
IEnumerable<Type> Analyze<T>(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type to analyze. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Type> | The types found matching the |
Type Parameters
Name | Description |
---|---|
T | The public properties have to inherit from this type to be considered a match. |
Remarks
Analyze a type looking for properties of a specified type. Will do so recursivly using reflection on public properties with getter and setter.
Validates if any property of a specific type creates a circular reference. Will throw an exception in that case.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | If circular references are found |