Reflection |
The ReflectionService type exposes the following members.
Name | Description | |
---|---|---|
Contains | Determines whether or not a given AssemblyName is contained in a list of names. This is done here by comparing the FullNames. | |
CreateInstanceFromList | Tries to get a class instance for a given attribute type. All loaded assemblies are searched for classes that attributeType applies to, then for all found classes the instantiation of a class is tried, until a instance is created successfully. Here, the attributeType has to implement IClassForClassAttribute, and creationArg[0] has to match the type in TargetType | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
ForceRegisteringOfAllPropertyKeys | Forces the registering of all property keys. The available property keys can afterwards be retrieved via the static functions of PropertyKeyBase | |
GetAttributeInstancesAndClassTypesForClass(Type, Object, ReflectionServiceIAttributeForClassListCollection) | For a given type of attribute, attributeType, this function returns the attribute instances and the class types this attributes apply to. If the attribute implements the IComparable interface, the list is sorted. The attribute has to implement the IClassForClassAttribute interface, and only those attributes are considered, for which the TargetType match the type of the target argument. | |
GetAttributeInstancesAndClassTypesForClass(Type, Object, Type) | For a given type of attribute, attributeType, this function returns the attribute instances and the class types this attributes apply to. If the attribute implements the IComparable interface, the list is sorted. The attribute has to implement the IClassForClassAttribute interface, and only those attributes are considered, for which the TargetType match the type of the target argument. | |
GetClassForClassInstanceByAttribute(Type, Type, Object) | Tries to get a class instance for a given attribute type. All loaded assemblies are searched for classes that attributeType applies to, then for all found classes the instantiation of a class is tried, until a instance is created successfully. Here, the attributeType has to implement IClassForClassAttribute, and creationArg[0] has to match the type in TargetType | |
GetClassForClassInstanceByAttribute(Type, Type, Object, Type) | Tries to get a class instance for a given attribute type. All loaded assemblies are searched for classes that attributeType applies to, then for all found classes the instantiation of a class is tried, until a instance is created successfully. Here, the attributeType has to implement IClassForClassAttribute, and creationArg[0] has to match the type in TargetType | |
GetClassInstanceByAttribute | Tries to get a class instance for a given attribute type. All loaded assemblies are searched for classes that attributeType applies to, then for all found classes the instantiation of a class is tried, until a instance is created successfully. | |
GetDependendAssemblies(Assembly, IEnumerableAssembly) | Gets a list of currently loaded assemblies that are dependend on the given base assembly. The base assembly is also in the returned list. | |
GetDependendAssemblies(Assembly, Int32) | Gets a list of currently loaded assemblies that are dependend on the given base assembly. The base assembly is also in the returned list. | |
GetDependendAssemblies(Type, Int32) | Gets a list of currently loaded assemblies that are dependend on the given types. This includes also the assembly itself, where the type(s) are defined, and all assemblies dependent on that. | |
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetNonAbstractSubclassesOf(Type) | This will return a list of types that are subclasses of type basetype or (when basetype is an interface) implements basetype. | |
GetNonAbstractSubclassesOf(Type) | This will return a list of types that are subclasses of type basetype or (when basetype is an interface) implements basetype. | |
GetSortedClassTypesHavingAttribute | For a given type of attribute, attributeType, this function returns the class types this attributes apply to. The list is sorted if attributeType implements the IComparable interface. | |
GetSubclassesOf(Type) | This will return a list of types that are subclasses of type basetype or (when basetype is an interface) implements basetype. | |
GetSubclassesOf(Type) | This will return a list of types that are subclasses of all types in basetypes or (when basetype[i] is an interface) implements basetypes[i]. | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
GetUnsortedClassTypesHavingAttribute | For a given type of attribute, attributeType, this function returns the class types this attributes apply to. The list is not sorted. | |
IsDependentAssembly | Returns true if testAssembly is dependent on baseAssembly. | |
IsSubClassOfOrImplements(Type, Type) | Determines whether or not a given subtype is derived from a basetype or implements the interface basetype. | |
IsSubClassOfOrImplements(Type, Type) | Determines whether or not a given subtype is derived from a basetype or implements the interface basetypes. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
ToString | Returns a string that represents the current object. (Inherited from Object) |